Uses of Class
com.azure.core.http.HttpRequest
Packages that use HttpRequest
Package
Description
Package containing core exception classes.
Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.
Package containing HttpPipelinePolicy interface and its implementations.
Package containing REST-related APIs.
-
Uses of HttpRequest in com.azure.core.exception
Methods in com.azure.core.exception that return HttpRequestModifier and TypeMethodDescriptionHttpRequestException.getRequest()
Gets theHttpRequest
being sent when the exception occurred.Constructors in com.azure.core.exception with parameters of type HttpRequestModifierConstructorDescriptionHttpRequestException
(HttpRequest request) Initializes a new instance of the HttpRequestException class.HttpRequestException
(HttpRequest request, Throwable cause) Initializes a new instance of the HttpRequestException class.HttpRequestException
(String message, HttpRequest request) Initializes a new instance of the HttpRequestException class.HttpRequestException
(String message, HttpRequest request, Throwable cause) Initializes a new instance of the HttpRequestException class.HttpRequestException
(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Initializes a new instance of the HttpRequestException class. -
Uses of HttpRequest in com.azure.core.http
Methods in com.azure.core.http that return HttpRequestModifier and TypeMethodDescriptionHttpRequest.copy()
Creates a copy of the request.HttpPipelineCallContext.getHttpRequest()
Gets the HTTP request.final HttpRequest
HttpResponse.getRequest()
Gets therequest
which resulted in this response.HttpRequest.setBody
(byte[] content) Set the request content.HttpRequest.setBody
(BinaryData content) Set request content.Set the request content.HttpRequest.setBody
(Flux<ByteBuffer> content) Set request content.HttpRequest.setHeader
(HttpHeaderName headerName, String value) Set a request header, replacing any existing value.Set a request header, replacing any existing value.HttpRequest.setHeaders
(HttpHeaders headers) Set the request headers.HttpRequest.setHttpMethod
(HttpMethod httpMethod) Set the request method.Set the target address to send the request to.Set the target address to send the request to.Methods in com.azure.core.http with parameters of type HttpRequestModifier and TypeMethodDescriptionHttpClient.send
(HttpRequest request) Send the provided request asynchronously.default Mono<HttpResponse>
HttpClient.send
(HttpRequest request, Context context) Sends the provided request asynchronously with contextual information.HttpPipeline.send
(HttpRequest request) Wraps therequest
in a context and sends it through pipeline.HttpPipeline.send
(HttpRequest request, Context data) Wraps the request in a context with additional metadata and sends it through the pipeline.default HttpResponse
HttpClient.sendSync
(HttpRequest request, Context context) Sends the provided request synchronously with contextual information.HttpPipeline.sendSync
(HttpRequest request, Context data) Wraps the request in a context with additional metadata and sends it through the pipeline.HttpPipelineCallContext.setHttpRequest
(HttpRequest request) Sets the HTTP request object in the context.Constructors in com.azure.core.http with parameters of type HttpRequestModifierConstructorDescriptionprotected
HttpResponse
(HttpRequest request) Creates an instance ofHttpResponse
. -
Uses of HttpRequest in com.azure.core.http.policy
Methods in com.azure.core.http.policy that return HttpRequestModifier and TypeMethodDescriptionDefaultRedirectStrategy.createRedirectRequest
(HttpResponse httpResponse) RedirectStrategy.createRedirectRequest
(HttpResponse httpResponse) Creates anrequest
for the redirect attempt.HttpRequestLoggingContext.getHttpRequest()
Gets the HTTP request being sent. -
Uses of HttpRequest in com.azure.core.http.rest
Methods in com.azure.core.http.rest that return HttpRequestModifier and TypeMethodDescriptionPagedResponseBase.getRequest()
Response.getRequest()
Gets the HTTP request which resulted in this response.ResponseBase.getRequest()
Gets The request which resulted in thisResponseBase
.SimpleResponse.getRequest()
Gets the request which resulted in thisSimpleResponse
.Methods in com.azure.core.http.rest with parameters of type HttpRequestModifier and TypeMethodDescriptionRestProxy.send
(HttpRequest request, Context contextData) Send the provided request asynchronously, applying any request policies provided to the HttpClient instance.Method parameters in com.azure.core.http.rest with type arguments of type HttpRequestModifier and TypeMethodDescriptionRequestOptions.addRequestCallback
(Consumer<HttpRequest> requestCallback) Adds a custom request callback to modify the HTTP request before it's sent by the HttpClient.Constructors in com.azure.core.http.rest with parameters of type HttpRequestModifierConstructorDescriptionPagedResponseBase
(HttpRequest request, int statusCode, HttpHeaders headers, Page<T> page, H deserializedHeaders) Creates a new instance of the PagedResponseBase type.PagedResponseBase
(HttpRequest request, int statusCode, HttpHeaders headers, List<T> items, String continuationToken, H deserializedHeaders) Creates a new instance of the PagedResponseBase type.ResponseBase
(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders) Creates aResponseBase
.SimpleResponse
(HttpRequest request, int statusCode, HttpHeaders headers, T value) Creates aSimpleResponse
.StreamResponse
(HttpRequest request, int statusCode, HttpHeaders headers, Flux<ByteBuffer> value) Deprecated.
StreamResponse(HttpResponse)