1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

move NormalizePath type to separate module

This commit is contained in:
Nikolay Kim
2018-03-29 11:39:21 -07:00
parent f5636f321b
commit dfd8f1058e
5 changed files with 329 additions and 327 deletions

View File

@ -437,6 +437,7 @@ This handler designed to be use as a handler for application's *default resource
# extern crate actix_web;
# #[macro_use] extern crate serde_derive;
# use actix_web::*;
use actix_web::helpers::NormalizePath;
#
# fn index(req: HttpRequest) -> httpcodes::StaticResponse {
# httpcodes::HttpOk
@ -462,6 +463,7 @@ It is possible to register path normalization only for *GET* requests only:
# extern crate actix_web;
# #[macro_use] extern crate serde_derive;
# use actix_web::*;
use actix_web::helpers::NormalizePath;
#
# fn index(req: HttpRequest) -> httpcodes::StaticResponse {
# httpcodes::HttpOk