Skip to main content

Class: BodyHttpResult<T>

A class for representing HTTP results with a body.

Extends​

Type Parameters​

T​

T = unknown

Constructors​

Constructor​

new BodyHttpResult<T>(value, rc, headers?): BodyHttpResult<T>

Parameters​

value​

T

rc​

HttpStatusCode

headers?​

Record<string, string> = {}

Returns​

BodyHttpResult<T>

Overrides​

HttpResult.constructor

Properties​

rc​

readonly rc: number

Inherited from​

RedirectHttpResult.rc


value​

readonly value: T

Inherited from​

HttpResult.value

Methods​

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​

HttpContext

The execution context containing relevant information for processing.

Returns​

Promise<void>

A promise resolving when the result has been processed.

Overrides​

HttpResult.process