类的使用
cn.taketoday.http.RequestEntity
使用RequestEntity的程序包
程序包
说明
Contains a basic abstraction over client/server-side HTTP.
Core package of the client-side web support.
Classes supporting the
cn.taketoday.web.client package.-
cn.taketoday.http中RequestEntity的使用
修饰符和类型类说明static classRequestEntity initialized with a URI template and variables instead of aURI.修饰符和类型方法说明<T> RequestEntity<T>RequestEntity.BodyBuilder.body(T body) Set the body of the request entity and build the RequestEntity.<T> RequestEntity<T>Set the body and type of the request entity and build the RequestEntity.<T> RequestEntity<T>RequestEntity.DefaultBodyBuilder.body(T body) <T> RequestEntity<T>RequestEntity.DefaultBodyBuilder.build()RequestEntity.HeadersBuilder.build()Builds the request entity with no body.private <T> RequestEntity<T>RequestEntity.DefaultBodyBuilder.buildInternal(T body, Type type) -
cn.taketoday.web.client中RequestEntity的使用
参数类型为RequestEntity的cn.taketoday.web.client中的方法修饰符和类型方法说明<T> ResponseEntity<T>RestOperations.exchange(RequestEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType) Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(RequestEntity<?> requestEntity, Class<T> responseType) Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T>RestTemplate.exchange(RequestEntity<?> entity, cn.taketoday.core.ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(RequestEntity<?> entity, Class<T> responseType) private URIRestTemplate.resolveUrl(RequestEntity<?> entity) -
cn.taketoday.web.client.support中RequestEntity的使用