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>

public class Http1ServerResponse extends Object implements cool.scx.http.ScxHttpServerResponse
Http1ServerResponse
Version:
0.0.1
Author:
scx567888
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    cool.scx.http.ScxHttpServerResponse
    headers(cool.scx.http.headers.ScxHttpHeaders headers)
     
    boolean
     
     
    reasonPhrase(String reasonPhrase)
     
    cool.scx.http.ScxHttpServerRequest
     
    send(cool.scx.http.media.MediaWriter writer)
     
    cool.scx.http.status.ScxHttpStatus
     
    cool.scx.http.ScxHttpServerResponse
    status(cool.scx.http.status.ScxHttpStatus code)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cool.scx.http.headers.ScxHttpHeadersReadHelper

    contentEncoding, contentLength, contentType, cookies, getCookie, getHeader, getHeader, getSetCookie, setCookies

    Methods inherited from interface cool.scx.http.headers.ScxHttpHeadersWriteHelper

    addCookie, addHeader, addHeader, addSetCookie, contentEncoding, contentLength, contentType, removeCookie, removeHeader, removeHeader, removeSetCookie, setHeader, setHeader

    Methods inherited from interface cool.scx.http.sender.ScxHttpSender

    send, send, send, send, send, send, send, send, send, send, send, sendEventStream, sendGzip

    Methods inherited from interface cool.scx.http.ScxHttpServerResponse

    status
  • Field Details

  • Method Details

    • request

      public cool.scx.http.ScxHttpServerRequest request()
      Specified by:
      request in interface cool.scx.http.ScxHttpServerResponse
    • status

      public cool.scx.http.status.ScxHttpStatus status()
      Specified by:
      status in interface cool.scx.http.ScxHttpServerResponse
    • reasonPhrase

      public String reasonPhrase()
    • reasonPhrase

      public Http1ServerResponse reasonPhrase(String reasonPhrase)
    • headers

      public Http1Headers headers()
      Specified by:
      headers in interface cool.scx.http.headers.ScxHttpHeadersReadHelper
      Specified by:
      headers in interface cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpServerResponse>
      Specified by:
      headers in interface cool.scx.http.ScxHttpServerResponse
    • headers

      public cool.scx.http.ScxHttpServerResponse headers(cool.scx.http.headers.ScxHttpHeaders headers)
      Specified by:
      headers in interface cool.scx.http.ScxHttpServerResponse
    • status

      public cool.scx.http.ScxHttpServerResponse status(cool.scx.http.status.ScxHttpStatus code)
      Specified by:
      status in interface cool.scx.http.ScxHttpServerResponse
    • send

      public Void send(cool.scx.http.media.MediaWriter writer) throws cool.scx.http.sender.BodyAlreadySentException
      Specified by:
      send in interface cool.scx.http.sender.ScxHttpSender<Void>
      Specified by:
      send in interface cool.scx.http.ScxHttpServerResponse
      Throws:
      cool.scx.http.sender.BodyAlreadySentException
    • isSent

      public boolean isSent()
      Specified by:
      isSent in interface cool.scx.http.ScxHttpServerResponse
    • createReasonPhrase

      public String createReasonPhrase()