Taxum / @taxum/core / http / HttpRequestBuilder
Class: HttpRequestBuilder
Defined in: http/request.ts:200
Builder for creating HTTP requests.
Constructors
Constructor
new HttpRequestBuilder():
HttpRequestBuilder
Returns
HttpRequestBuilder
Methods
body()
body(
body
):HttpRequest
Defined in: http/request.ts:253
Parameters
body
Returns
connectInfo()
connectInfo(
connectInfo
):this
Defined in: http/request.ts:248
Parameters
connectInfo
SocketAddress
Returns
this
extension()
extension<
T
>(key
,value
):this
Defined in: http/request.ts:243
Type Parameters
T
T
Parameters
key
ExtensionKey
<T
>
value
T
Returns
this
extensions()
extensions(
extensions
):this
Defined in: http/request.ts:238
Parameters
extensions
Returns
this
header()
header(
key
,value
):this
Defined in: http/request.ts:233
Parameters
key
string
value
Returns
this
headers()
headers(
headers
):this
Defined in: http/request.ts:228
Parameters
headers
Returns
this
method()
method(
method
):this
Defined in: http/request.ts:208
Parameters
method
string
| Method
Returns
this
path()
path(
path
):this
Defined in: http/request.ts:218
Parameters
path
string
Returns
this
uri()
uri(
uri
):this
Defined in: http/request.ts:213
Parameters
uri
URL
Returns
this
version()
version(
version
):this
Defined in: http/request.ts:223
Parameters
version
string
Returns
this