mirror of
https://github.com/actix/actix-web.git
synced 2024-12-17 13:46:36 +00:00
add doc string
This commit is contained in:
parent
63ddc07ccb
commit
406d2c41e9
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue