mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-11 01:53:11 +00:00
remove httpmethod enum
This commit is contained in:
parent
965e2c16f5
commit
06637848de
@ -6,10 +6,6 @@ logScope:
|
||||
topic = "JSONRPC-HTTP-CLIENT"
|
||||
|
||||
type
|
||||
HttpMethod* {.pure.} = enum
|
||||
GET
|
||||
POST
|
||||
|
||||
HttpClientOptions* = object
|
||||
httpMethod: HttpMethod
|
||||
|
||||
@ -143,7 +139,7 @@ proc recvData(transp: StreamTransport): Future[string] {.async.} =
|
||||
result = cast[string](buffer)
|
||||
|
||||
proc init(opts: var HttpClientOptions) =
|
||||
opts.httpMethod = HttpMethod.GET
|
||||
opts.httpMethod = MethodGet
|
||||
|
||||
proc newRpcHttpClient*(): RpcHttpClient =
|
||||
## Creates a new HTTP client instance.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user