moonbitstack/moonrpc/server does not have a README file
pub(all) struct Call {
id : Int
ctx : RpcContext
requests : Array[Bytes]
run : async (RpcContext, Array[Bytes], Responder) -> Unit
}pub(all) struct CallInfo {
path : String
client_streaming : Bool
server_streaming : Bool
}pub struct H2Server {
handlers : Map[String, Handler]
encoder : Encoder
decoder : Decoder
streams : Map[Int, SrvStream]
interceptors : Array[(CallInfo, RpcContext, Array[Bytes], (Array[Bytes]) -> Array[Bytes]) -> Array[Bytes]]
encoding : Encoding
concurrent : Bool
calls : Array[Call]
ended : Array[Int]
keepalive : ServerKeepalive?
pings : PingGuard?
settings_sent_at : Int64?
max_recv : Int
max_send : Int
size_update : Int?
conn_recv_window : Int
conn_send_window : Int
remote_initial_window : Int
remote_max_frame : Int
max_streams : Int
clock : () -> Int64
continuing : Int?
goaway_received : Bool
last_client_stream : Int
closing : Bool
drained : Int?
}fn H2Server::add_stream_interceptor(self : H2Server, interceptor : (RpcContext, Bytes, (RpcContext, Bytes) -> Array[Bytes]) -> Array[Bytes]) -> Unitfn H2Server::add_unary_interceptor(self : H2Server, interceptor : (RpcContext, Bytes, (RpcContext, Bytes) -> Bytes) -> Bytes) -> Unitfn H2Server::register_bidi(self : H2Server, path : String, factory : (RpcContext) -> BidiHandler) -> Unitfn H2Server::register_client_streaming(self : H2Server, path : String, handler : (RpcContext, Array[Bytes]) -> Bytes) -> Unitfn H2Server::register_server_streaming(self : H2Server, path : String, handler : (RpcContext, Bytes) -> Array[Bytes]) -> Unitfn H2Server::register_unary(self : H2Server, path : String, handler : (RpcContext, Bytes) -> Bytes) -> Unitpub(all) struct SrvStream {
id : Int
state : StreamState
header_block : Buffer
data : Buffer
req_off : Int
req_msgs : Array[Bytes]
bidi_processed : Int
headers_complete : Bool
in_headers : Bool
end_stream_recv : Bool
path : String
ctx : RpcContext
deadline_at : Int64?
recv_window : Int
send_window : Int
out : Bytes
out_off : Int
started : Bool
started_response : Bool
response_ended : Bool
finalized : Bool
trailers_only : Bool
http_status : Int
status_code : Int
status_message : String
req_encoding : Bytes
accept_encodings : Bytes
resp_encoding : Encoding
compressed_unsupported : Bool
oversize : Bool
headers_sent : Bool
trailers_sent : Bool
bidi : BidiHandler?
}let default_max_streams : Intlet settings_ack_timeout : Int64