Package com.hexagonkt.http.model
Interface HttpResponsePort
-
- All Implemented Interfaces:
-
com.hexagonkt.http.model.HttpBase,com.hexagonkt.http.model.HttpMessage
public interface HttpResponsePort implements HttpMessage
-
-
Method Summary
Modifier and Type Method Description abstract HttpResponsePortwith(HttpStatus status, Object body, Headers headers, ContentType contentType, List<Cookie> cookies, Function1<WsSession, Unit> onConnect, Function2<WsSession, ByteArray, Unit> onBinary, Function2<WsSession, String, Unit> onText, Function2<WsSession, ByteArray, Unit> onPing, Function2<WsSession, ByteArray, Unit> onPong, Function3<WsSession, Integer, String, Unit> onClose)HttpResponsePortplus(Header header)HttpResponsePortplus(Cookie cookie)HttpResponsePortplus(Headers headers)HttpResponsePortplus(List<Cookie> cookies)abstract HttpStatusgetStatus()abstract LonggetContentLength()abstract Function1<WsSession, Unit>getOnConnect()abstract Function2<WsSession, ByteArray, Unit>getOnBinary()abstract Function2<WsSession, String, Unit>getOnText()abstract Function2<WsSession, ByteArray, Unit>getOnPing()abstract Function2<WsSession, ByteArray, Unit>getOnPong()abstract Function3<WsSession, Integer, String, Unit>getOnClose()-
Methods inherited from class com.hexagonkt.http.model.HttpMessage
cookiesMap, getCookies -
Methods inherited from class com.hexagonkt.http.model.HttpBase
bodyString, getBody, getContentType, getHeaders -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
with
abstract HttpResponsePort with(HttpStatus status, Object body, Headers headers, ContentType contentType, List<Cookie> cookies, Function1<WsSession, Unit> onConnect, Function2<WsSession, ByteArray, Unit> onBinary, Function2<WsSession, String, Unit> onText, Function2<WsSession, ByteArray, Unit> onPing, Function2<WsSession, ByteArray, Unit> onPong, Function3<WsSession, Integer, String, Unit> onClose)
-
plus
HttpResponsePort plus(Header header)
-
plus
HttpResponsePort plus(Cookie cookie)
-
plus
HttpResponsePort plus(Headers headers)
-
plus
HttpResponsePort plus(List<Cookie> cookies)
-
getStatus
abstract HttpStatus getStatus()
-
getContentLength
abstract Long getContentLength()
-
getOnConnect
abstract Function1<WsSession, Unit> getOnConnect()
-
getOnBinary
abstract Function2<WsSession, ByteArray, Unit> getOnBinary()
-
getOnClose
abstract Function3<WsSession, Integer, String, Unit> getOnClose()
-
-
-
-