Java Code Examples for io.vertx.core.http.HttpClientResponse#statusMessage()
The following examples show how to use
io.vertx.core.http.HttpClientResponse#statusMessage() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultRestClientRequest.java From vertx-rest-client with Apache License 2.0 | 5 votes |
private HttpInputMessage createHttpInputMessage(ByteBuf body, HttpClientResponse httpClientResponse) { return new BufferedHttpInputMessage( body, httpClientResponse.headers(), httpClientResponse.trailers(), httpClientResponse.statusMessage(), httpClientResponse.statusCode(), httpClientResponse.cookies() ); }
Example 2
Source File: PredicateInterceptor.java From vertx-web with Apache License 2.0 | 5 votes |
private <B> HttpResponseImpl<B> responseCopy(HttpClientResponse resp, HttpContext<?> httpContext, B value) { return new HttpResponseImpl<>( resp.version(), resp.statusCode(), resp.statusMessage(), MultiMap.caseInsensitiveMultiMap().addAll(resp.headers()), null, new ArrayList<>(resp.cookies()), value, httpContext.getRedirectedLocations() ); }
Example 3
Source File: KafkaConnectApi.java From strimzi-kafka-operator with Apache License 2.0 | 4 votes |
public ConnectRestException(HttpClientResponse response, String message) { this(response.request().method().toString(), response.request().path(), response.statusCode(), response.statusMessage(), message); }
Example 4
Source File: KafkaConnectApi.java From strimzi-kafka-operator with Apache License 2.0 | 4 votes |
public ConnectRestException(HttpClientResponse response, String message, Throwable cause) { this(response.request().method().toString(), response.request().path(), response.statusCode(), response.statusMessage(), message, cause); }
Example 5
Source File: ConnectionRefusedException.java From vertx-sse with Apache License 2.0 | 4 votes |
public ConnectionRefusedException(HttpClientResponse response) { super(response.statusMessage()); this.response = response; }