Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TwitarrHTTPOptions

Options to be used when making HTTP ReST calls.

Hierarchy

  • TwitarrHTTPOptions

Index

Constructors

constructor

Properties

Private __computed

__computed: TwitarrAuthConfig

data

data: any

HTTP data to be passed when POSTing

headers

headers: IHash<string>

HTTP headers to be passed to the request.

parameters

parameters: IHash<string>

HTTP parameters to be passed on the URL.

server

The server to use if no server is set on the HTTP implementation.

Accessors

auth

timeout

  • get timeout(): number
  • set timeout(t: number): void

Methods

toJSON

  • toJSON(): object

withData

withHeader

withParameter

  • Add a URL parameter. Returns the TwitarrHTTPOptions object so it can be chained.

    Parameters

    • key: string

      the parameter's key

    • Optional value: any

      the parameter's value

    Returns TwitarrHTTPOptions

Generated using TypeDoc