HTTP Service

The HTTP service facilitates making outbound HTTP network requests from a Gear. All standard HTTP methods (such as GET, POST, PUT) are supported. All requests made from this service are synchronous and return a ClientResponse upon completion.

The HTTP service can be used in conjunction with any of the three authentication Gear components: OAuth, HTTP Basic Auth, and Custom Auth. After the applicable authentication component is configured, it can be applied to the ClientRequest that is passed as the second parameter to any of the HTTP service methods.

Example

Example

Example

Example

Example

Example