Type Alias RequestHeaders

RequestHeaders: {
    accept?: string;
    authorization?: string;
    user-agent?: string;
    [header: string]: string | number | undefined;
}

Type declaration

  • [header: string]: string | number | undefined
  • Optionalaccept?: string

    Avoid setting headers.accept, use mediaType.{format|previews} option instead.

  • Optionalauthorization?: string

    Use authorization to send authenticated request, remember token / bearer prefixes. Example: token 1234567890abcdef1234567890abcdef12345678

  • Optionaluser-agent?: string

    user-agent is set do a default and can be overwritten as needed.