接口的使用
cn.taketoday.web.client.RestClient.RequestBodySpec
程序包
说明
Core package of the client-side web support.
Classes supporting the
cn.taketoday.web.client package.-
cn.taketoday.web.client中RestClient.RequestBodySpec的使用
修饰符和类型接口说明static interfaceContract for specifying request headers, body and URI for a request.修饰符和类型方法说明DefaultRestClient.DefaultRequestBodyUriSpec.attributes(Consumer<Map<String, Object>> attributesConsumer) DefaultRestClient.DefaultRequestBodyUriSpec.body(StreamingHttpOutputMessage.Body body) DefaultRestClient.DefaultRequestBodyUriSpec.body(T body, cn.taketoday.core.ParameterizedTypeReference<T> bodyType) RestClient.RequestBodySpec.body(StreamingHttpOutputMessage.Body body) Set the body of the response to the given function that writes to anOutputStream.Set the body of the request to the givenObject.RestClient.RequestBodySpec.body(T body, cn.taketoday.core.ParameterizedTypeReference<T> bodyType) Set the body of the response to the givenObject.RestClient.RequestBodySpec.contentLength(long contentLength) Set the length of the body in bytes, as specified by theContent-Lengthheader.RestClient.RequestBodySpec.contentType(MediaType contentType) Set the media type of the body, as specified by theContent-Typeheader.DefaultRestClient.DefaultRequestBodyUriSpec.httpRequest(Consumer<ClientHttpRequest> requestConsumer) DefaultRestClient.DefaultRequestBodyUriSpec.uri(String uriTemplate, Function<UriBuilder, URI> uriFunction) DefaultRestClient.DefaultRequestBodyUriSpec.uri(Function<UriBuilder, URI> uriFunction) -
cn.taketoday.web.client.support中RestClient.RequestBodySpec的使用
修饰符和类型方法说明private RestClient.RequestBodySpecRestClientAdapter.newRequest(HttpRequestValues values)