APIParsingContext
Index
Methods
Methods
optionalerror
Generates an error response from an Request result when an HTTP error occurs.
Parameters
from: string
Raw data returned from the HTTP response.
Returns Error
Optional error option described within the supplied data.
resultType
Enables the response from an Request to be customized.
The default implementation utilizes the response's status code to report the appropriate result.
Parameters
from: HTTPResponse
The response returned from the server.
Returns APIResponseResult
The result that should be inferred from this response.
Provides contextual information when parsing and decoding Request responses, or errors.