Gets all attributes from the response. The attributes that are available depend on the operation that was invoked.
The JSON object representing the attributes for this response
Gets a specific attribute from the response
The JSON associated with the given attribute, or undefined if not found
Gets DOIP output as an InDoipMessage.
This is a lower-level api for advanced usage. In most cases, asJson, asBody, and asReadableStream should be preferred.
Gets the response as a stream of bytes
A promise that resolves to a ReadableStream
Get the response as a Body
A promise that resolves to a Body
Close the response object and clean up resources, if needed
Represents a response from a DOIP operation.
This class encapsulates the response data from a DOIP service, including status, attributes, and output. It provides methods to access this data and convert the response to different formats (JSON, ReadableStream, Body, or Error).
Callers are generally responsible for calling close to ensure the network connection behind this response is closed. The asJson, asBody, asReadableStream, and asError methods automatically close the response.