A stringified body (if any) to add to this HttpTask.
A list of headers to add to this HttpTask.
The type of HTTP request to make.
A string containing the URL to direct this HTTP request to.
Static
createStatic
decodeDecodes a HttpTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
HttpTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeStatic
encodeStatic
encodeStatic
fromStatic
getStatic
toCreates a plain object from a HttpTask message. Also converts values to other types if specified.
HttpTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
The adapter will report the text body of a successful HTTP request to the specified url, or return an error if the response status code is greater than or equal to 400.
Input: None
Returns: String representation of the http response.
Example: Basic HttpTask
Example: HttpTask example with headers