Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITwitarrHTTP

Interface for making ReST calls to an HTTP server.

interface

Hierarchy

  • ITwitarrHTTP

Implemented by

Index

Properties

options

The default options used when making requests with this instance.

server

The server associated with this instance.

Methods

get

getKey

  • getKey(): string

getPassword

  • getPassword(): string

getUsername

  • getUsername(): string

httpDelete

post

postFile

  • Post a file to the provided URL using a multipart/form-data request.

    Parameters

    • url: string

      The URL to connect to.

    • fileName: string

      The name of the file to be uploaded.

    • contentType: string

      The content-type of the file to be uploaded.

    • data: Buffer

      The file (as bytes) to send.

    • Optional options: TwitarrHTTPOptions

      The TwitarrHTTPOptions options to use when connecting.

    Returns Promise<TwitarrResult<any>>

    A TwitarrResult result object.

put

setKey

setPassword

setUsername

Generated using TypeDoc