http
http
korolev.effect.io
DataSocket
DataSocket
CloseReason
ByPeer
Error
StreamCanceled
CloseReason
RawDataSocket
RawDataSocket
SecureDataSocket
SecureDataSocket
ServerSocket
ServerSocket
ServerSocketHandler
ServerSocketHandler
korolev.http
HttpClient
HttpClient
HttpServer
korolev.http.protocol
Http11
Http11
WebSocketProtocol
WebSocketProtocol
DecodingState
Begin
LongLength
Payload
ShortLength
DecodingState
Frame
Binary
ConnectionClose
Continuation
Control
Merged
Ping
Pong
Text
Unspecified
Frame
Intention
Intention
http
/
korolev.http.protocol
/
Http11
Http11
class
Http11
[
B
]
Companion:
object
Graph
Supertypes
class
Object
trait
Matchable
class
Any
Value members
Value members
Concrete methods
def
decodeChunkedBody
(
state: (
Option
[
Long
],
B
),
incoming:
B
): ((
Option
[
Long
],
B
),
Action
[
B
,
B
])
def
decodeLimitedBody
[
F
[
_
] :
Effect
](
prevBytesTotal:
Long
,
incoming:
B
,
contentLength:
Long
): (
Long
,
Action
[
B
,
B
])
def
decodeRequest
[
F
[
_
] :
Effect
](
decoder:
Decoder
[
F
,
B
]):
Stream
[
F
,
Request
[
Stream
[
F
,
B
]]]
def
decodeRequest
(
buffer:
B
,
incoming:
B
): (
B
,
Action
[
B
,
Request
[
Unit
]])
def
decodeResponse
[
F
[
_
] :
Effect
](
decoder:
Decoder
[
F
,
B
]):
Stream
[
F
,
Response
[
Stream
[
F
,
B
]]]
def
decodeResponse
(
buffer:
B
,
incoming:
B
): (
B
,
Action
[
B
,
Response
[
Unit
]])
def
findLastHeaderEnd
(
bytes:
B
):
Long
def
parseRequest
(
allBytes:
B
,
lastByteOfHeader:
Long
): (
B
,
Request
[
Unit
])
def
parseResponse
(
bytes:
B
,
lastHeaderEnd:
Long
): (
B
,
Response
[
Unit
])
def
renderRequest
[
F
[
_
] :
Effect
](
request:
Request
[
Stream
[
F
,
B
]]):
F
[
Stream
[
F
,
B
]]
def
renderRequestHead
[
T
](
request:
Request
[
T
]):
String
def
renderResponse
[
F
[
_
] :
Effect
](
response:
Response
[
Stream
[
F
,
B
]]):
F
[
Stream
[
F
,
B
]]
def
renderResponseHeader
(
status:
Status
,
headers:
Seq
[(
String
,
String
)]):
String