Methods
body(value) → {ContinueRequestParameters}
Sets the body value for the request.
Parameters:
Name | Type | Description |
---|---|---|
value | BytesValue | The value to set as the body. Must be an instance of BytesValue. |
Throws:
- If the value is not an instance of BytesValue.
- Type
- Error
Returns:
- The current instance of the ContinueRequestParameters for chaining.
cookies(cookieHeaders) → {continueRequestParameters}
Sets the cookies for the request.
Parameters:
Name | Type | Description |
---|---|---|
cookieHeaders | Array.<Header> | An array of cookie headers. |
Throws:
- If a cookie header is not an instance of Header.
- Type
- Error
Returns:
- The current instance of the ContinueRequestParameters for chaining.
- Type:
- continueRequestParameters
headers(headers) → {ContinueRequestParameters}
Sets the headers for the request.
Parameters:
Name | Type | Description |
---|---|---|
headers | Array.<Header> | An array of Header objects. |
Throws:
- If the header value is not an instance of Header.
- Type
- Error
Returns:
- The current instance of the ContinueRequestParameters for chaining.
method(method) → {ContinueRequestParameters}
Sets the HTTP method for the request.
Parameters:
Name | Type | Description |
---|---|---|
method | string | The HTTP method to be set. |
Throws:
- If the method parameter is not a string.
- Type
- Error
Returns:
- The updated
continueRequestParameters
object.
url(url) → {ContinueRequestParameters}
Sets the URL for the request.
Parameters:
Name | Type | Description |
---|---|---|
url | string | The URL to set for the request. |
Throws:
- If the url parameter is not a string.
- Type
- Error
Returns:
- The current instance of the ContinueRequestParameters for chaining.