Uses of Interface
java.net.http.HttpRequest.Builder
-
Packages that use HttpRequest.Builder 软件包 描述 java.net.http HTTP客户端和WebSocket API -
-
Uses of HttpRequest.Builder in java.net.http
Methods in java.net.http that return HttpRequest.Builder 变量和类型 方法 描述 HttpRequest.Builder
HttpRequest.Builder. copy()
根据当前状态返回此Builder
的精确副本。HttpRequest.Builder
HttpRequest.Builder. DELETE()
将此构建器的请求方法设置为DELETE。HttpRequest.Builder
HttpRequest.Builder. expectContinue(boolean enable)
请求服务器在发送正文之前确认请求。HttpRequest.Builder
HttpRequest.Builder. GET()
将此构建器的请求方法设置为GET。HttpRequest.Builder
HttpRequest.Builder. header(String name, String value)
将给定的名称值对添加到此请求的标头集。HttpRequest.Builder
HttpRequest.Builder. headers(String... headers)
将给定的名称值对添加到此请求的标头集。HttpRequest.Builder
HttpRequest.Builder. method(String method, HttpRequest.BodyPublisher bodyPublisher)
将此构建器的请求方法和请求主体设置为给定值。static HttpRequest.Builder
HttpRequest. newBuilder()
创建HttpRequest
构建器。static HttpRequest.Builder
HttpRequest. newBuilder(URI uri)
使用给定的URI创建HttpRequest
构建器。HttpRequest.Builder
HttpRequest.Builder. POST(HttpRequest.BodyPublisher bodyPublisher)
将此构建器的请求方法设置为POST,并将其请求主体发布者设置为给定值。HttpRequest.Builder
HttpRequest.Builder. PUT(HttpRequest.BodyPublisher bodyPublisher)
将此构建器的请求方法设置为PUT,并将其请求主体发布者设置为给定值。HttpRequest.Builder
HttpRequest.Builder. setHeader(String name, String value)
将给定名称值对设置为此请求的标头集。HttpRequest.Builder
HttpRequest.Builder. timeout(Duration duration)
设置此请求的超时。HttpRequest.Builder
HttpRequest.Builder. uri(URI uri)
设置此HttpRequest
的请求URI
。HttpRequest.Builder
HttpRequest.Builder. version(HttpClient.Version version)
为此请求设置首选HttpClient.Version
。
-