接口的使用
cn.taketoday.http.RequestEntity.BodyBuilder
-
cn.taketoday.http中RequestEntity.BodyBuilder的使用
修饰符和类型方法说明RequestEntity.DefaultBodyBuilder.acceptCharset(Charset... acceptableCharsets) RequestEntity.BodyBuilder.contentLength(long contentLength) Set the length of the body in bytes, as specified by theContent-Lengthheader.RequestEntity.DefaultBodyBuilder.contentLength(long contentLength) RequestEntity.BodyBuilder.contentType(MediaType contentType) Set the media type of the body, as specified by theContent-Typeheader.RequestEntity.DefaultBodyBuilder.contentType(MediaType contentType) RequestEntity.DefaultBodyBuilder.headers(HttpHeaders headers) RequestEntity.DefaultBodyBuilder.headers(Consumer<HttpHeaders> headersConsumer) RequestEntity.DefaultBodyBuilder.ifModifiedSince(long ifModifiedSince) RequestEntity.DefaultBodyBuilder.ifModifiedSince(Instant ifModifiedSince) RequestEntity.DefaultBodyBuilder.ifModifiedSince(ZonedDateTime ifModifiedSince) RequestEntity.DefaultBodyBuilder.ifNoneMatch(String... ifNoneMatches) static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, String uriTemplate, Object... uriVariables) Create a builder with the given HTTP method, URI template, and variables.static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, String uriTemplate, Map<String, ?> uriVariables) Create a builder with the given HTTP method, URI template, and variables.static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, URI url) Create a builder with the given method and url.static RequestEntity.BodyBuilderCreate an HTTP PATCH builder with the given string base uri template.static RequestEntity.BodyBuilderCreate an HTTP PATCH builder with the given url.static RequestEntity.BodyBuilderCreate an HTTP POST builder with the given string base uri template.static RequestEntity.BodyBuilderCreate an HTTP POST builder with the given url.static RequestEntity.BodyBuilderCreate an HTTP PUT builder with the given string base uri template.static RequestEntity.BodyBuilderCreate an HTTP PUT builder with the given url.