spring-framework / org.springframework.http.client.support / HttpRequestWrapper

HttpRequestWrapper

open class HttpRequestWrapper : HttpRequest

Provides a convenient implementation of the HttpRequest interface that can be overridden to adapt the request.

These methods default to calling through to the wrapped request object.

Author
Arjen Poutsma

Since
3.1

Constructors

<init>

HttpRequestWrapper(request: HttpRequest)

Create a new HttpRequest wrapping the given request object.

Functions

getHeaders

open fun getHeaders(): HttpHeaders

Return the headers of the wrapped request.

getMethod

open fun getMethod(): HttpMethod

Return the method of the wrapped request.

getMethodValue

open fun getMethodValue(): String

Return the method value of the wrapped request.

getRequest

open fun getRequest(): HttpRequest

Return the wrapped request.

getURI

open fun getURI(): URI

Return the URI of the wrapped request.