Module methanol
Class ImmutableResponseInfo
java.lang.Object
com.github.mizosoft.methanol.internal.extensions.ImmutableResponseInfo
- All Implemented Interfaces:
HttpResponse.ResponseInfo
Basic implementation of
ResponseInfo
.-
Constructor Summary
ConstructorDescriptionImmutableResponseInfo
(int statusCode, HttpHeaders headers, HttpClient.Version version) -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpResponse.ResponseInfo
from
(HttpResponse<?> response) headers()
int
version()
-
Constructor Details
-
ImmutableResponseInfo
-
-
Method Details
-
statusCode
public int statusCode()- Specified by:
statusCode
in interfaceHttpResponse.ResponseInfo
-
headers
- Specified by:
headers
in interfaceHttpResponse.ResponseInfo
-
version
- Specified by:
version
in interfaceHttpResponse.ResponseInfo
-
from
-