Creates a new wrapper instance.
The body buffer to wrap.
ReadonlyformatCustom options for formatting query strings.
ReadonlyparseCustom options for parsing query strings.
Checks if the wrapper is frozen (read-only).
true if the wrapper is frozen, false otherwise.
Gets the body buffer size in bytes.
The size of the body.
Freezes the wrapper to prevent modifications.
This wrapper for method chaining.
Gets the body as a JSON object (cached).
Optionalcharset: string
The optional character encoding.
The parsed JSON object.
Gets the body as a query string object (cached).
Optionalcharset: string
The optional character encoding.
The parsed query string object.
Sets the raw body buffer.
The Buffer to set as the body.
This wrapper for method chaining.
Sets the body from a JSON object.
The JSON object to stringify.
Optionalcharset: string
The optional character encoding.
This wrapper for method chaining.
Sets the body from a query string object.
The query string object.
Optionalcharset: string
The optional character encoding.
This wrapper for method chaining.
StaticfromFactory method to create a wrapper from scratch.
A new wrapper instance with an empty body.
Wrapper class for HTTP message bodies.