azure-docs-sdk-java/docs-ref-autogen/com.azure.core.http.yml

34 строки
2.5 KiB
YAML

### YamlMime:JavaPackage
uid: "com.azure.core.http"
fullName: "com.azure.core.http"
name: "com.azure.core.http"
summary: "This package provides HTTP abstractions for Azure SDK client libraries."
classes:
- "com.azure.core.http.ContentType"
- "com.azure.core.http.HttpAuthorization"
- "com.azure.core.http.HttpHeader"
- "com.azure.core.http.HttpHeaderName"
- "com.azure.core.http.HttpHeaders"
- "com.azure.core.http.HttpPipeline"
- "com.azure.core.http.HttpPipelineBuilder"
- "com.azure.core.http.HttpPipelineCallContext"
- "com.azure.core.http.HttpPipelineNextPolicy"
- "com.azure.core.http.HttpPipelineNextSyncPolicy"
- "com.azure.core.http.HttpRange"
- "com.azure.core.http.HttpRequest"
- "com.azure.core.http.HttpResponse"
- "com.azure.core.http.MatchConditions"
- "com.azure.core.http.ProxyOptions"
- "com.azure.core.http.RequestConditions"
enums:
- "com.azure.core.http.HttpMethod"
- "com.azure.core.http.HttpPipelinePosition"
- "com.azure.core.http.ProxyOptions.Type"
interfaces:
- "com.azure.core.http.HttpClient"
- "com.azure.core.http.HttpClientProvider"
desc: "This package provides HTTP abstractions for Azure SDK client libraries. It serves as a bridge between the AnnotationParser, RestProxy, and the HTTP client.\n\nKey features:\n\n * AnnotationParser: Interprets annotations on interface definitions and methods to construct HTTP requests.\n * RestProxy: Transforms interface definitions into live implementations that convert method invocations into network calls.\n * HTTP client: Sends HTTP requests and receives responses.\n\nThe HTTP pipeline is a series of policies that are invoked to handle an HTTP request. Each policy is a piece of code that takes an HTTP request, does some processing, and passes the request to the next policy in the pipeline. The last policy in the pipeline would then actually send the HTTP request.\n\nUsers can create a custom pipeline by creating their own policies and adding them to the pipeline. Here's a code sample:\n\n```java\nHttpPipeline pipeline = new HttpPipelineBuilder()\n .policies(new UserAgentPolicy(), new RetryPolicy())\n .build();\n```\n\nThis package is crucial for the communication between Azure SDK client libraries and Azure services. It provides a layer of abstraction over the HTTP protocol, allowing client libraries to focus on service-specific logic. Custom pipelines can be helpful when you want to customize the behavior of HTTP requests and responses in some way, such as, to add a custom header to all requests."
metadata: {}
package: "com.azure.core.http"
artifact: com.azure:azure-core:1.52.0