Interface IMeteorHTTP

HTTP package *

Index

Methods

Methods

public call(method: string, url: string, options: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; }, asyncCallback?: Function): IMeteorHTTPResult

Parameters

  • method: string
  • url: string
  • options: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; }
  • asyncCallback?: Function optional

Returns

IMeteorHTTPResult

public del(url: string, options?: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; }, asyncCallback?: Function): IMeteorHTTPResult

Parameters

  • url: string
  • options?: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; } optional
  • asyncCallback?: Function optional

Returns

IMeteorHTTPResult

public get(url: string, options?: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; }, asyncCallback?: Function): IMeteorHTTPResult

Parameters

  • url: string
  • options?: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; } optional
  • asyncCallback?: Function optional

Returns

IMeteorHTTPResult

public post(url: string, options?: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; }, asyncCallback?: Function): IMeteorHTTPResult

Parameters

  • url: string
  • options?: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; } optional
  • asyncCallback?: Function optional

Returns

IMeteorHTTPResult

public put(url: string, options?: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; }, asyncCallback?: Function): IMeteorHTTPResult

Parameters

  • url: string
  • options?: { content?: string; data?: Object; query?: string; params?: Object; auth?: string; headers?: Object; timeout?: number; followRedirects?: boolean; } optional
  • asyncCallback?: Function optional

Returns

IMeteorHTTPResult