Uses of Class
com.azure.core.http.HttpResponse
Packages that use HttpResponse
Package
Description
This package contains the core exception classes used throughout the Azure SDKs.
This package provides HTTP abstractions for Azure SDK client libraries.
This package contains the HttpPipelinePolicy interface and its implementations.
This package contains classes and interfaces that provide RESTful HTTP functionality for Azure SDKs.
-
Uses of HttpResponse in com.azure.core.exception
Methods in com.azure.core.exception that return HttpResponseModifier and TypeMethodDescriptionHttpResponseException.getResponse()Gets theHttpResponsereceived 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 theClientAuthenticationExceptionclass.ClientAuthenticationException(String message, HttpResponse response, Object value) Initializes a new instance of theClientAuthenticationExceptionclass.ClientAuthenticationException(String message, HttpResponse response, Throwable cause) Initializes a new instance of theClientAuthenticationExceptionclass.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 newresponseobject wrapping this response with its content buffered into memory.HttpPipelineNextSyncPolicy.processSync()Invokes the nextHttpPipelinePolicy.default HttpResponseHttpClient.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 therequestin 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 HttpResponseHttpPipelineSyncPolicy.afterReceivedResponse(HttpPipelineCallContext context, HttpResponse response) Method is invoked after the response is received.HttpResponseLoggingContext.getHttpResponse()Gets the HTTP response being received.RequestRetryCondition.getResponse()Gets the HTTP response of the request that failed.default HttpResponseHttpResponseLogger.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) 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 HttpResponseHttpPipelinePolicy.processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) Processes provided request context and invokes the next policy synchronously.final HttpResponseHttpPipelineSyncPolicy.processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) Processes provided request context and invokes the next policy synchronously.KeyCredentialPolicy.processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) 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) 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.KeyCredentialPolicy.process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) 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 HttpResponseHttpPipelineSyncPolicy.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 appropriateTokenRequestContextto be used for re-authentication.booleanBearerTokenAuthenticationPolicy.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 appropriateTokenRequestContextto be used for re-authentication.DefaultRedirectStrategy.createRedirectRequest(HttpResponse httpResponse) RedirectStrategy.createRedirectRequest(HttpResponse httpResponse) Creates anrequestfor the redirect attempt.booleanDefaultRedirectStrategy.shouldAttemptRedirect(HttpPipelineCallContext context, HttpResponse httpResponse, int tryCount, Set<String> attemptedRedirectUrls) booleanRedirectStrategy.shouldAttemptRedirect(HttpPipelineCallContext context, HttpResponse httpResponse, int tryCount, Set<String> attemptedRedirectUrls) Determines if the url should be redirected between each try.default booleanRetryStrategy.shouldRetry(HttpResponse httpResponse) This method is consulted to determine if a retry attempt should be made for the givenHttpResponseif 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