1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

export extractor configs via web module

This commit is contained in:
Nikolay Kim
2019-03-07 14:01:52 -08:00
parent b211966c28
commit 0e57b4ad61
6 changed files with 44 additions and 43 deletions

View File

@@ -89,9 +89,9 @@ where
/// Add match guard to a scope.
///
/// ```rust
/// use actix_web::{web, guard, App, HttpRequest, HttpResponse, extract::Path};
/// use actix_web::{web, guard, App, HttpRequest, HttpResponse};
///
/// fn index(data: Path<(String, String)>) -> &'static str {
/// fn index(data: web::Path<(String, String)>) -> &'static str {
/// "Welcome!"
/// }
///
@@ -146,9 +146,9 @@ where
/// multiple resources with one route would be registered for same resource path.
///
/// ```rust
/// use actix_web::{web, App, HttpResponse, extract::Path};
/// use actix_web::{web, App, HttpResponse};
///
/// fn index(data: Path<(String, String)>) -> &'static str {
/// fn index(data: web::Path<(String, String)>) -> &'static str {
/// "Welcome!"
/// }
///