1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01:00

add doc string

This commit is contained in:
Nikolay Kim 2017-12-20 20:56:17 -08:00
parent 63ddc07ccb
commit 406d2c41e9

View File

@ -85,6 +85,7 @@ pub struct JsonBody<S, T: DeserializeOwned>{
impl<S, T: DeserializeOwned> JsonBody<S, T> { impl<S, T: DeserializeOwned> JsonBody<S, T> {
/// Create `JsonBody` for request.
pub fn from_request(req: &mut HttpRequest<S>) -> Self { pub fn from_request(req: &mut HttpRequest<S>) -> Self {
JsonBody{ JsonBody{
limit: 262_144, limit: 262_144,