| Package | Description |
|---|---|
| com.microsoft.rest.v2 |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| com.microsoft.rest.v2.http |
This package contains the HTTP abstractions between the AnnotationParser's RestProxy and whatever
HTTP client we choose to use.
|
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
SwaggerMethodParser.httpMethod()
Get the HTTP method that will be used to complete the Swagger method's request.
|
| Modifier and Type | Field and Description |
|---|---|
static HttpMethod |
HttpMethod.DELETE
The HTTP DELETE method.
|
static HttpMethod |
HttpMethod.GET
The HTTP GET method.
|
static HttpMethod |
HttpMethod.HEAD
The HTTP HEAD method.
|
static HttpMethod |
HttpMethod.PATCH
The HTTP PATCH method.
|
static HttpMethod |
HttpMethod.POST
The HTTP POST method.
|
static HttpMethod |
HttpMethod.PUT
The HTTP PUT method.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpMethod |
HttpMethod.fromString(String name)
Creates or finds a HttpMethod from its string representation.
|
HttpMethod |
HttpRequest.httpMethod()
Get the HTTP method that this request will use.
|
| Modifier and Type | Method and Description |
|---|---|
static Collection<HttpMethod> |
HttpMethod.values() |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequest.withHttpMethod(HttpMethod httpMethod)
Set the HTTP method that this request will use.
|
| Constructor and Description |
|---|
HttpRequest(String callerMethod,
HttpMethod httpMethod,
URL url,
HttpHeaders headers,
io.reactivex.Flowable<ByteBuffer> body,
HttpResponseDecoder responseDecoder)
Create a new HttpRequest object.
|
HttpRequest(String callerMethod,
HttpMethod httpMethod,
URL url,
HttpResponseDecoder responseDecoder)
Create a new HttpRequest object with the provided HTTP method (GET, POST, PUT, etc.) and the
provided URL.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/