mirror of https://github.com/fafhrd91/actix-web
improve comments
This commit is contained in:
parent
fa6477012d
commit
47d6d171dc
|
@ -18,7 +18,8 @@ use httpmessage::{HttpMessage, MessageBody, UrlEncoded};
|
||||||
use httprequest::HttpRequest;
|
use httprequest::HttpRequest;
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(PartialEq, Eq, PartialOrd, Ord)]
|
||||||
/// Extract typed information from the request's path.
|
/// Extract typed information from the request's path. Information from the path is
|
||||||
|
/// URL decoded. Decoding of special characters can be disabled through `PathConfig`.
|
||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
///
|
///
|
||||||
|
@ -161,7 +162,7 @@ impl<S> PathConfig<S> {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Disable decoding
|
/// Disable decoding of URL encoded special charaters from the path
|
||||||
pub fn disable_decoding(&mut self) -> &mut Self
|
pub fn disable_decoding(&mut self) -> &mut Self
|
||||||
{
|
{
|
||||||
self.decode = false;
|
self.decode = false;
|
||||||
|
|
Loading…
Reference in New Issue