This section details synchronous methods. Each method in this section returns a Response object. Methods The following methods return a Response object. Parameters for these functions are documented below. Method | Description | Return type |
---|
.get() | Sends an HTTP GET call, blocking for a response | Response | .getAsync() | Sends an HTTP GET call without blocking. | Promise | .post() | Sends an HTTP POST call, blocking for a response | Response | .postAsync() | Sends an HTTP POST call without blocking. | Promise | .put() | Sends an HTTP PUT call, blocking for a response | Response | .putAsync() | Sends an HTTP PUT call without blocking. | Promise | .delete() | Sends an HTTP DELETE call, blocking for a response | Response | .deleteAsync() | Sends an HTTP DELETE call without blocking. | Promise | .patch() | Sends an HTTP PATCH call, blocking for a response | Response | .patchAsync() | Sends an HTTP PATCH call without blocking. | Promise | .head() | Sends an HTTP HEAD call, blocking for a response. | Response | .headAsync() | Sends an HTTP HEAD call without blocking. | Promise | .options() | Sends a blocking HTTP OPTIONS request. | Response | .optionsAsync() | Sends a non-blocking HTTP OPTIONS request. | Promise | .trace() | Sends an HTTP TRACE call, blocking for a response. | Response | .traceAsync() | Sends an HTTP TRACE call, without blocking for a response. | Promise | .request() |
| Response | .requestAsync() |
| Promise |
Parameters Parameters in this section can be used by any of the methods above. Exceptions to this rule will be defined on each parameter. |