mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-11 10:03:12 +00:00
Update for define rename
This commit is contained in:
parent
ffb4752811
commit
99018eede4
@ -4,10 +4,10 @@ export rpcserver
|
||||
type
|
||||
RpcHttpServer* = RpcServer[StreamServer]
|
||||
|
||||
defineRpcTransport(httpProcessClient):
|
||||
defineRpcServerTransport(httpProcessClient):
|
||||
write:
|
||||
let
|
||||
msg = &"Host: {$client.localAddress} Content-Type: application/json-rpc Content-Length: {$value.len} {value}"
|
||||
const contentType = "Content-Type: application/json-rpc"
|
||||
let msg = &"Host: {$client.localAddress} {contentType} Content-Length: {$value.len} {value}"
|
||||
debug "Http write", msg = msg
|
||||
client.write(msg)
|
||||
afterRead:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user