共用方式為


HttpURLConnectionHttpClient Class

  • java.lang.Object
    • com.azure.core.test.utils.HttpURLConnectionHttpClient

Implements

public class HttpURLConnectionHttpClient
implements HttpClient

A HttpClient that uses the JDK HttpURLConnection.

Constructor Summary

Constructor Description
HttpURLConnectionHttpClient()

Method Summary

Modifier and Type Method and Description
Mono<HttpResponse> send(HttpRequest request)
Mono<HttpResponse> send(HttpRequest request, Context context)
HttpResponse sendSync(HttpRequest request, Context context)

Methods inherited from java.lang.Object

Constructor Details

HttpURLConnectionHttpClient

public HttpURLConnectionHttpClient()

Method Details

send

public Mono send(HttpRequest request)

Parameters:

request

send

public Mono send(HttpRequest request, Context context)

Parameters:

request
context

sendSync

public HttpResponse sendSync(HttpRequest request, Context context)

Parameters:

request
context

Applies to