remove httpmethod enum

This commit is contained in:
andri lim 2018-11-12 21:02:54 +07:00
parent 965e2c16f5
commit 06637848de
1 changed files with 1 additions and 5 deletions

View File

@ -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.