mirror of
https://github.com/actix/actix-extras.git
synced 2025-08-22 00:05:36 +02:00
add doc string
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user