@request-seal/core API
Preparing search index...
adapters/node-http
captureBody
Function captureBody
captureBody
(
req
:
unknown
,
bytes
:
unknown
,
options
?:
unknown
,
)
:
Result
<
Readonly
<
{
ingress
:
Ingress
;
message
:
Message
;
origin
:
Readonly
<
{
authority
:
string
;
scheme
:
string
;
source
:
"connection"
|
"forwarded"
;
}
,
>
;
replay
:
()
=>
Result
<
Readable
>
;
}
,
>
,
>
Return a defensive copy of captured Node request body bytes.
Parameters
req
:
unknown
bytes
:
unknown
options
:
unknown
= {}
Returns
Result
<
Readonly
<
{
ingress
:
Ingress
;
message
:
Message
;
origin
:
Readonly
<
{
authority
:
string
;
scheme
:
string
;
source
:
"connection"
|
"forwarded"
;
}
,
>
;
replay
:
()
=>
Result
<
Readable
>
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@request-seal/core API
Loading...
Return a defensive copy of captured Node request body bytes.