Interface HttpResponse.ResponseInfo

Enclosing interface:
HttpResponse<T>
public static interface HttpResponse.ResponseInfo

Initial response information supplied to a BodyHandler when a response is initially received and before the body is processed.

Methods

Modifier and Type Method Description
HttpHeaders headers()

Provides the response headers.

int statusCode()

Provides the response status code.

HttpClient.Version version()

Provides the response protocol version.

Methods

statusCode

int statusCode()

Provides the response status code.

Returns:
the response status code

headers

HttpHeaders headers()

Provides the response headers.

Returns:
the response headers

version

HttpClient.Version version()

Provides the response protocol version.

Returns:
the response protocol version

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.ResponseInfo.html