Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 2.13 KB

updatestreamresponse.md

File metadata and controls

29 lines (24 loc) · 2.13 KB

UpdateStreamResponse

Example Usage

import { UpdateStreamResponse } from "livepeer/models/operations";

let value: UpdateStreamResponse = {
  contentType: "<value>",
  statusCode: 308,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  error: {
    errors: [
      "[\"id not provided\",\"Account not found\"]",
    ],
  },
};

Fields

Field Type Required Description
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
error components.ErrorT Error