BodySizeLimitHook class
The BodySizeLimitHook class is used to define a body size limit hook.
- Inheritance
-
- Object
- Processable
- Hook
- BodySizeLimitHook
- Mixed-in types
- Annotations
-
- @Deprecated('Use the application options "bodySizeLimit" instead because it is more efficient and it offers a better grade of security.')
Constructors
- BodySizeLimitHook({int maxSize = 1024 * 1024})
-
The BodySizeLimitHook constructor is used to create a new instance of the BodySizeLimitHook class.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxSize → int
-
The maximum size of the body in bytes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- service → Object?
-
The Hook can expose a service that will be used by the application without the need to create a new module.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onRequest(
ExecutionContext< ArgumentsHost> context) → Future<void> -
The onRequest method is used to execute code before the request is handled
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited