Package io.gravitee.gateway.api.proxy
Interface ProxyResponse
- All Superinterfaces:
ReadStream<Buffer>
- Author:
- David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcancel()default ProxyResponsecancelHandler(Handler<Void> cancelHandler) default booleanIs the response connected to an upstream or it is a 'direct' response from the proxy itself.default ProxyResponsecustomFrameHandler(Handler<HttpFrame> frameHandler) For HTTP/2 requestheaders()default Stringreason()Reason-Phrase is intended to give a short textual description of the Status-Code.intstatus()default HttpHeaderstrailers()Methods inherited from interface io.gravitee.gateway.api.stream.ReadStream
bodyHandler, endHandler, pause, resume
-
Method Details
-
status
int status()- Returns:
- HTTP status code.
-
reason
Reason-Phrase is intended to give a short textual description of the Status-Code.- Returns:
-
headers
HttpHeaders headers()- Returns:
- the headers in the response.
-
connected
default boolean connected()Is the response connected to an upstream or it is a 'direct' response from the proxy itself.- Returns:
-
customFrameHandler
For HTTP/2 request- Parameters:
frameHandler- The handler to call when getting a custom HTTP Frame.- Returns:
-
trailers
-
cancelHandler
-
cancel
default void cancel()
-