Std.Http.Server.Socket
17 public declarations
- accept
&Std.Http.Server.Route.Request -> &Array[Str] -> Result[Std.Http.Response, Std.Http.Server.Socket.SocketError]The answer that agrees to a lasting connection, or the reason it is refused.
- accepting
Str -> StrThe value that proves this end followed the protocol.
- answering
&Std.Http.Server.Socket.Message -> Option[Std.Http.Server.Socket.Message]The answer a check of the far end expects.
- binary
&Bytes -> Std.Http.Server.Socket.MessageBytes to send.
- completes
&Std.Http.Server.Socket.Frame -> BoolWhether a frame completes the message it belongs to.
- decode
&Bytes -> Int -> Result[(Std.Http.Server.Socket.Frame, Int), Std.Http.Server.Socket.SocketError]The frame at the start of these bytes, and how many bytes it used.
- encode
&Std.Http.Server.Socket.Message -> BytesA frame to send to the far end.
- explain
&Std.Http.Server.Socket.SocketError -> StrWhat a refusal says.
- Frame
One frame read off a connection: what it is, whether it completes a
- goodbye
Int -> Str -> Std.Http.Server.Socket.MessageA goodbye to send.
- isControl
&Std.Http.Server.Socket.Frame -> BoolWhether a frame is one the protocol handles rather than the program.
- isUpgrade
&Std.Http.Server.Route.Request -> BoolWhether a request is asking for a lasting connection.
- Message
What a message is.
- messageLimit
IntHow large a message this module reads when nothing said otherwise.
- messageOf
&Std.Http.Server.Socket.Frame -> Result[Std.Http.Server.Socket.Message, Std.Http.Server.Socket.SocketError]What a frame means, once it is whole.
- SocketError
Why a connection was refused or a frame would not be read.
- text
Str -> Std.Http.Server.Socket.MessageText to send.
