enum Http1Event
source · line 9public
public enum Http1Event
One decoded HTTP/1 event. A message head is followed by body/trailer events and End; Switch marks transfer to another protocol.
variant Trailers
source · line 25public
Trailers(Array<HttpField>)
Ordered trailer fields after the body.
parameter _
source · line 25public
Array<HttpField>
field _
source · line 25public
Array<HttpField>
variant Switch
source · line 34public
Switch
The decoder reached a protocol-switch boundary and leaves the unread suffix in the input buffer.
variant End
source · line 29public
End(Boolean)
The current message ended; the Boolean indicates that the connection must close.
field _
source · line 29public
Boolean
parameter _
source · line 29public
Boolean
variant Request
source · line 13public
Request(HttpRequestHead)
A complete incoming request head.
parameter _
source · line 13public
HttpRequestHead
field _
source · line 13public
HttpRequestHead
variant Data
source · line 21public
Data(Array<Byte>)
An owned body-byte chunk.
field _
source · line 21public
Array<Byte>
parameter _
source · line 21public
Array<Byte>
variant Response
source · line 17public
Response(HttpResponseHead)
An incoming response head, including informational responses.
parameter _
source · line 17public
HttpResponseHead
field _
source · line 17public
HttpResponseHead
function equals
source · line 9publiccompiler-derived
operator fun equals(other: Http1Event): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: HttpRequestHead, HttpResponseHead, Array<Int8>, Array<HttpField>, Boolean.