mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
add doc string
This commit is contained in:
parent
63ddc07ccb
commit
406d2c41e9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user