Interface Request

Index

Methods

Methods

public abort()

public attach(field: string, file: string, filename: string): Request

Parameters

  • field: string
  • file: string
  • filename: string

Returns

Request

public auth(user: string, name: string): Request

Parameters

  • user: string
  • name: string

Returns

Request

public buffer(val: boolean): Request

Parameters

  • val: boolean

Returns

Request

public clearTimeout(): Request

Returns

Request

public end(callback?: (err: Error, res: "superagent".Response) => void): Request

Parameters

  • callback?: (err: Error, res: "superagent".Response) => void optional

Returns

Request

public field(name: string, val: string): Request

Parameters

  • name: string
  • val: string

Returns

Request

public get(field: string): string

Parameters

  • field: string

Returns

string

public part(): Request

Returns

Request

public pipe(stream: WritableStream, options?: Object): Writable

Parameters

Returns

Writable

public query(val: Object): Request

Parameters

  • val: Object

Returns

Request

public redirects(n: number): Request

Parameters

  • n: number

Returns

Request

public send(data: string): Request

Parameters

  • data: string

Returns

Request

public send(data: Object): Request

Parameters

  • data: Object

Returns

Request

public set(field: string, val: string): Request

Parameters

  • field: string
  • val: string

Returns

Request

public set(field: Object): Request

Parameters

  • field: Object

Returns

Request

public timeout(ms: number): Request

Parameters

  • ms: number

Returns

Request

public type(val: string): Request

Parameters

  • val: string

Returns

Request

public write(data: string, encoding: string): boolean

Parameters

  • data: string
  • encoding: string

Returns

boolean

public write(data: Buffer, encoding: string): boolean

Parameters

  • data: Buffer
  • encoding: string

Returns

boolean