Uses of Class
com.azure.core.http.HttpResponse
Packages that use HttpResponse
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 HttpResponse in com.azure.core.exception
Methods in com.azure.core.exception that return HttpResponseModifier and TypeMethodDescriptionHttpResponseException.getResponse()
Gets theHttpResponse
received that is associated to the exception.Constructors in com.azure.core.exception with parameters of type HttpResponseModifierConstructorDescriptionClientAuthenticationException
(String message, HttpResponse response) Initializes a new instance of theClientAuthenticationException
class.ClientAuthenticationException
(String message, HttpResponse response, Object value) Initializes a new instance of theClientAuthenticationException
class.ClientAuthenticationException
(String message, HttpResponse response, Throwable cause) Initializes a new instance of theClientAuthenticationException
class.DecodeException
(String message, HttpResponse response) Initializes a new instance of the DecodeException class.DecodeException
(String message, HttpResponse response, Object value) Initializes a new instance of the DecodeException class.DecodeException
(String message, HttpResponse response, Throwable cause) Initializes a new instance of the DecodeException class.HttpResponseException
(HttpResponse response) Initializes a new instance of the HttpResponseException class.HttpResponseException
(HttpResponse response, Throwable cause) Initializes a new instance of the HttpResponseException class.HttpResponseException
(String message, HttpResponse response) Initializes a new instance of the HttpResponseException class.HttpResponseException
(String message, HttpResponse response, Object value) Initializes a new instance of the HttpResponseException class.HttpResponseException
(String message, HttpResponse response, Throwable cause) Initializes a new instance of the HttpResponseException class.HttpResponseException
(String message, HttpResponse response, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Initializes a new instance of the HttpResponseException class.ResourceExistsException
(String message, HttpResponse response) Initializes a new instance of the ResourceExistsException class.ResourceExistsException
(String message, HttpResponse response, Object value) Initializes a new instance of the ResourceExistsException class.ResourceExistsException
(String message, HttpResponse response, Throwable cause) Initializes a new instance of the ResourceExistsException class.ResourceModifiedException
(String message, HttpResponse response) Initializes a new instance of the ResourceModifiedException class.ResourceModifiedException
(String message, HttpResponse response, Object value) Initializes a new instance of the ResourceModifiedException class.ResourceModifiedException
(String message, HttpResponse response, Throwable cause) Initializes a new instance of the ResourceModifiedException class.ResourceNotFoundException
(String message, HttpResponse response) Initializes a new instance of the ResourceNotFoundException class.ResourceNotFoundException
(String message, HttpResponse response, Object value) Initializes a new instance of the ResourceNotFoundException class.ResourceNotFoundException
(String message, HttpResponse response, Throwable cause) Initializes a new instance of the ResourceNotFoundException class.TooManyRedirectsException
(String message, HttpResponse response) Initializes a new instance of the TooManyRedirectsException class.TooManyRedirectsException
(String message, HttpResponse response, Object value) Initializes a new instance of the TooManyRedirectsException class.TooManyRedirectsException
(String message, HttpResponse response, Throwable cause) Initializes a new instance of the TooManyRedirectsException class. -
Uses of HttpResponse in com.azure.core.http
Methods in com.azure.core.http that return HttpResponseModifier and TypeMethodDescriptionHttpResponse.buffer()
Gets a newresponse
object wrapping this response with its content buffered into memory.HttpPipelineNextSyncPolicy.processSync()
Invokes the nextHttpPipelinePolicy
.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.Methods in com.azure.core.http that return types with arguments of type HttpResponseModifier and TypeMethodDescriptionHttpPipelineNextPolicy.process()
Invokes the nextHttpPipelinePolicy
.HttpClient.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
(HttpPipelineCallContext context) Sends the context (containing an HTTP request) through pipeline.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. -
Uses of HttpResponse in com.azure.core.http.policy
Methods in com.azure.core.http.policy that return HttpResponseModifier and TypeMethodDescriptionprotected HttpResponse
HttpPipelineSyncPolicy.afterReceivedResponse
(HttpPipelineCallContext context, HttpResponse response) Method is invoked after the response is received.HttpResponseLoggingContext.getHttpResponse()
Gets the HTTP response being received.default HttpResponse
HttpResponseLogger.logResponseSync
(ClientLogger logger, HttpResponseLoggingContext loggingOptions) Logs the HTTP response.AddDatePolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) AddHeadersFromContextPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) AddHeadersPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) AzureKeyCredentialPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) AzureSasCredentialPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) BearerTokenAuthenticationPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) CookiePolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) HostPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) HttpLoggingPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) default HttpResponse
HttpPipelinePolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) Processes provided request context and invokes the next policy synchronously.final HttpResponse
HttpPipelineSyncPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) Processes provided request context and invokes the next policy synchronously.PortPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) ProtocolPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) RedirectPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) RequestIdPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) RetryPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) UserAgentPolicy.processSync
(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) Updates the "User-Agent" header with the value supplied in the policy synchronously.Methods in com.azure.core.http.policy that return types with arguments of type HttpResponseModifier and TypeMethodDescriptionHttpResponseLogger.logResponse
(ClientLogger logger, HttpResponseLoggingContext loggingOptions) Logs the HTTP response.AddDatePolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) AddHeadersFromContextPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) AddHeadersPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) AzureKeyCredentialPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) AzureSasCredentialPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) BearerTokenAuthenticationPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) CookiePolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) HostPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) HttpLoggingPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) HttpPipelinePolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) Processes provided request context and invokes the next policy.final Mono<HttpResponse>
HttpPipelineSyncPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) Processes provided request context and invokes the next policy.PortPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) ProtocolPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) RedirectPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) RequestIdPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) RetryPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) TimeoutPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) Deprecated.UserAgentPolicy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) Updates the "User-Agent" header with the value supplied in the policy.Methods in com.azure.core.http.policy with parameters of type HttpResponseModifier and TypeMethodDescriptionprotected HttpResponse
HttpPipelineSyncPolicy.afterReceivedResponse
(HttpPipelineCallContext context, HttpResponse response) Method is invoked after the response is received.BearerTokenAuthenticationPolicy.authorizeRequestOnChallenge
(HttpPipelineCallContext context, HttpResponse response) Handles the authentication challenge in the event a 401 response with a WWW-Authenticate authentication challenge header is received after the initial request and returns appropriateTokenRequestContext
to be used for re-authentication.boolean
BearerTokenAuthenticationPolicy.authorizeRequestOnChallengeSync
(HttpPipelineCallContext context, HttpResponse response) Handles the authentication challenge in the event a 401 response with a WWW-Authenticate authentication challenge header is received after the initial request and returns appropriateTokenRequestContext
to be used for re-authentication.DefaultRedirectStrategy.createRedirectRequest
(HttpResponse httpResponse) RedirectStrategy.createRedirectRequest
(HttpResponse httpResponse) Creates anrequest
for the redirect attempt.boolean
DefaultRedirectStrategy.shouldAttemptRedirect
(HttpPipelineCallContext context, HttpResponse httpResponse, int tryCount, Set<String> attemptedRedirectUrls) boolean
RedirectStrategy.shouldAttemptRedirect
(HttpPipelineCallContext context, HttpResponse httpResponse, int tryCount, Set<String> attemptedRedirectUrls) Determines if the url should be redirected between each try.default boolean
RetryStrategy.shouldRetry
(HttpResponse httpResponse) This method is consulted to determine if a retry attempt should be made for the givenHttpResponse
if the retry attempts are less thanRetryStrategy.getMaxRetries()
. -
Uses of HttpResponse in com.azure.core.http.rest
Methods in com.azure.core.http.rest that return types with arguments of type HttpResponseModifier and TypeMethodDescriptionRestProxy.send
(HttpRequest request, Context contextData) Send the provided request asynchronously, applying any request policies provided to the HttpClient instance.Constructors in com.azure.core.http.rest with parameters of type HttpResponse