diff --git a/src/json.rs b/src/json.rs index 93cff4135..a33fa46d6 100644 --- a/src/json.rs +++ b/src/json.rs @@ -85,6 +85,7 @@ pub struct JsonBody{ impl JsonBody { + /// Create `JsonBody` for request. pub fn from_request(req: &mut HttpRequest) -> Self { JsonBody{ limit: 262_144,