Class HttpRequest

An object encapsulating an HTTP request. This object is not instantiated directly, rather it is returned by gapi.client.request.

Index

Methods

Methods

public execute(callback: (jsonResp: T, rawResp: { body: string; headers: any[]; status: number; statusText: string; }) => any)

Executes the request and runs the supplied callback on response.

Parameters

  • callback: (jsonResp: T, rawResp: { body: string; headers: any[]; status: number; statusText: string; }) => any

    The callback function which executes when the request succeeds or fails.