1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-17 05:36:36 +00: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> {
/// Create `JsonBody` for request.
pub fn from_request(req: &mut HttpRequest<S>) -> Self {
JsonBody{
limit: 262_144,