CoapResponse()

DESCRIPTION

CoAP response object type returned when executing CoAP requests.

DECLARATION

export type CoapResponse = {
  statusCode: number,
  contentFormat?: number,
  payload?: Buffer,
}
// TODO: our example currently do not use streams, so it is not implemented
// export interface EdgeStream {
//   onClosed(fn: ClosedCallback): void