Class: BodyHttpResult<T>
A class for representing HTTP results with a body.
Extends
HttpResult<T>
Type Parameters
T
T = unknown
Constructors
Constructor
new BodyHttpResult<
T>(value,rc,headers?):BodyHttpResult<T>
Parameters
value
T
rc
headers?
Record<string, string> = {}
Returns
BodyHttpResult<T>
Overrides
Properties
rc
readonlyrc:number
Inherited from
value
readonlyvalue:T
Inherited from
Methods
header()
header(
name,value):this
Parameters
name
string
value
string
Returns
this
process()
process(
context):Promise<void>
Processes the result using the provided execution context.
Parameters
context
The execution context containing relevant information for processing.
Returns
Promise<void>
A promise resolving when the result has been processed.