Package io.gravitee.gateway.api
Interface Response
- All Superinterfaces:
WriteStream<Buffer>
Represents a server-side HTTP response.
- Author:
- David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidend()booleanended()default ResponseendHandler(Handler<Void> endHandler) headers()reason()Reason-Phrase is intended to give a short textual description of the Status-Code.intstatus()status(int statusCode) trailers()default ResponsewriteCustomFrame(HttpFrame frame) Methods inherited from interface io.gravitee.gateway.api.stream.WriteStream
drainHandler, end, write, writeQueueFull
-
Method Details
-
status
-
status
int status() -
end
default void end()- Specified by:
endin interfaceWriteStream<Buffer>
-
endHandler
-
reason
String reason()Reason-Phrase is intended to give a short textual description of the Status-Code.- Returns:
-
reason
-
headers
HttpHeaders headers()- Returns:
- the headers in the response.
-
ended
boolean ended()- Returns:
- has the response already ended?
-
trailers
HttpHeaders trailers() -
writeCustomFrame
-