|
10 | 10 | */ |
11 | 11 | package io.vertx.httpproxy.impl; |
12 | 12 |
|
13 | | -import io.vertx.core.AsyncResult; |
14 | | -import io.vertx.core.Future; |
15 | | -import io.vertx.core.Handler; |
16 | | -import io.vertx.core.MultiMap; |
17 | | -import io.vertx.core.Promise; |
| 13 | +import io.vertx.core.*; |
18 | 14 | import io.vertx.core.buffer.Buffer; |
19 | | -import io.vertx.core.http.HttpClientRequest; |
20 | | -import io.vertx.core.http.HttpHeaders; |
21 | | -import io.vertx.core.http.HttpMethod; |
22 | | -import io.vertx.core.http.HttpServerRequest; |
23 | | -import io.vertx.core.http.HttpVersion; |
24 | | -import io.vertx.core.http.impl.HttpServerRequestInternal; |
| 15 | +import io.vertx.core.http.*; |
25 | 16 | import io.vertx.core.internal.ContextInternal; |
| 17 | +import io.vertx.core.internal.http.HttpServerRequestInternal; |
26 | 18 | import io.vertx.core.net.HostAndPort; |
27 | 19 | import io.vertx.core.streams.Pipe; |
28 | 20 | import io.vertx.httpproxy.Body; |
@@ -77,7 +69,7 @@ public ProxiedRequest(HttpServerRequest proxiedRequest) { |
77 | 69 | this.headers = MultiMap.caseInsensitiveMultiMap().addAll(proxiedRequest.headers()); |
78 | 70 | this.absoluteURI = proxiedRequest.absoluteURI(); |
79 | 71 | this.proxiedRequest = proxiedRequest; |
80 | | - this.context = (ContextInternal) ((HttpServerRequestInternal) proxiedRequest).context(); |
| 72 | + this.context = ((HttpServerRequestInternal) proxiedRequest).context(); |
81 | 73 | this.authority = proxiedRequest.authority(); |
82 | 74 | } |
83 | 75 |
|
|
0 commit comments