public static class HttpClient.Response extends Object
| Constructor and Description |
|---|
Response(int statusCode,
String payload,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
static HttpClient.Response |
from(org.apache.http.HttpResponse response) |
static HttpClient.Response |
from(org.apache.http.HttpResponse response,
String charset) |
String |
getHeader(String header) |
String |
getPayload() |
int |
getStatusCode() |
boolean |
hasPayload() |
public static HttpClient.Response from(org.apache.http.HttpResponse response) throws IOException
IOExceptionpublic static HttpClient.Response from(org.apache.http.HttpResponse response, String charset) throws IOException
IOExceptionpublic boolean hasPayload()
public String getPayload()
public int getStatusCode()
Copyright © 2023 JBoss by Red Hat. All rights reserved.