Class Http1ServerResponse
java.lang.Object
cool.scx.http.x.http1.Http1ServerResponse
- All Implemented Interfaces:
cool.scx.http.headers.ScxHttpHeadersReadHelper, cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpServerResponse>, cool.scx.http.ScxHttpServerResponse, cool.scx.http.sender.ScxHttpSender<Void>
Http1ServerResponse
- Version:
- 0.0.1
- Author:
- scx567888
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionheaders()cool.scx.http.ScxHttpServerResponseheaders(cool.scx.http.headers.ScxHttpHeaders headers) booleanisSent()reasonPhrase(String reasonPhrase) cool.scx.http.ScxHttpServerRequestrequest()send(cool.scx.http.media.MediaWriter writer) cool.scx.http.status.ScxHttpStatusstatus()cool.scx.http.ScxHttpServerResponsestatus(cool.scx.http.status.ScxHttpStatus code) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.http.headers.ScxHttpHeadersReadHelper
contentEncoding, contentLength, contentType, cookies, getCookie, getHeader, getHeader, getSetCookie, setCookiesMethods inherited from interface cool.scx.http.headers.ScxHttpHeadersWriteHelper
addCookie, addHeader, addHeader, addSetCookie, contentEncoding, contentLength, contentType, removeCookie, removeHeader, removeHeader, removeSetCookie, setHeader, setHeaderMethods inherited from interface cool.scx.http.sender.ScxHttpSender
send, send, send, send, send, send, send, send, send, send, send, sendEventStream, sendGzipMethods inherited from interface cool.scx.http.ScxHttpServerResponse
status
-
Field Details
-
connection
-
-
Method Details
-
request
public cool.scx.http.ScxHttpServerRequest request()- Specified by:
requestin interfacecool.scx.http.ScxHttpServerResponse
-
status
public cool.scx.http.status.ScxHttpStatus status()- Specified by:
statusin interfacecool.scx.http.ScxHttpServerResponse
-
reasonPhrase
-
reasonPhrase
-
headers
- Specified by:
headersin interfacecool.scx.http.headers.ScxHttpHeadersReadHelper- Specified by:
headersin interfacecool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpServerResponse>- Specified by:
headersin interfacecool.scx.http.ScxHttpServerResponse
-
headers
public cool.scx.http.ScxHttpServerResponse headers(cool.scx.http.headers.ScxHttpHeaders headers) - Specified by:
headersin interfacecool.scx.http.ScxHttpServerResponse
-
status
public cool.scx.http.ScxHttpServerResponse status(cool.scx.http.status.ScxHttpStatus code) - Specified by:
statusin interfacecool.scx.http.ScxHttpServerResponse
-
send
public Void send(cool.scx.http.media.MediaWriter writer) throws cool.scx.http.sender.BodyAlreadySentException - Specified by:
sendin interfacecool.scx.http.sender.ScxHttpSender<Void>- Specified by:
sendin interfacecool.scx.http.ScxHttpServerResponse- Throws:
cool.scx.http.sender.BodyAlreadySentException
-
isSent
public boolean isSent()- Specified by:
isSentin interfacecool.scx.http.ScxHttpServerResponse
-
createReasonPhrase
-