Package io.gravitee.gateway.api
Interface Response
-
- All Superinterfaces:
WriteStream<Buffer>
public interface Response extends WriteStream<Buffer>
Represents a server-side HTTP response.- Author:
- David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidend()booleanended()default ResponseendHandler(Handler<Void> endHandler)HttpHeadersheaders()Stringreason()Reason-Phrase is intended to give a short textual description of the Status-Code.Responsereason(String message)intstatus()Responsestatus(int statusCode)HttpHeaderstrailers()default ResponsewriteCustomFrame(HttpFrame frame)-
Methods inherited from interface io.gravitee.gateway.api.stream.WriteStream
drainHandler, end, write, writeQueueFull
-
-
-
-
Method Detail
-
status
Response status(int statusCode)
-
status
int status()
-
end
default void end()
- Specified by:
endin interfaceWriteStream<Buffer>
-
reason
String 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.
-
ended
boolean ended()
- Returns:
- has the response already ended?
-
trailers
HttpHeaders trailers()
-
-