HTTP HEAD

In the current version of Spring (4.3.10), HEAD is automatically supported.

@RequestMapping functions mapped to GET are also implicitly mapped to HEAD, meaning that there is no need to have HEAD explicitly declared. An HTTP HEAD request is processed as if it were an HTTP GET, but instead of writing the body, only the number of bytes is counted, as well as the Content-Length header set.

Here are the common functions of HTTP HEAD:

@Throws(RestClientException::class)
fun headForHeaders(url: String, vararg urlVariables: Any): HttpHeaders

@Throws(RestClientException::class)
fun headForHeaders(url: String, urlVariables: Map<String, *>): HttpHeaders

@Throws(RestClientException::class)
fun headForHeaders(url: URI): HttpHeaders
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.191.86