Class Http1ServerConnection
java.lang.Object
cool.scx.http.x.http1.Http1ServerConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal cool.scx.bytes.ByteReaderfinal OutputStreamfinal HttpServerOptionsfinal cool.scx.function.ConsumerX<ScxHttpServerRequest, ?> final cool.scx.tcp.ScxTCPSocket -
Constructor Summary
ConstructorsConstructorDescriptionHttp1ServerConnection(cool.scx.tcp.ScxTCPSocket tcpSocket, HttpServerOptions options, cool.scx.function.ConsumerX<ScxHttpServerRequest, ?> requestHandler, ScxHttpServerErrorHandler errorHandler) -
Method Summary
-
Field Details
-
tcpSocket
public final cool.scx.tcp.ScxTCPSocket tcpSocket -
options
-
requestHandler
-
errorHandler
-
dataReader
public final cool.scx.bytes.ByteReader dataReader -
dataWriter
-
-
Constructor Details
-
Http1ServerConnection
public Http1ServerConnection(cool.scx.tcp.ScxTCPSocket tcpSocket, HttpServerOptions options, cool.scx.function.ConsumerX<ScxHttpServerRequest, ?> requestHandler, ScxHttpServerErrorHandler errorHandler)
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
close
- Throws:
IOException
-
running
public boolean running()
-