Fix chronicles compilation issue. (#6)

Export address variable.
This commit is contained in:
Eugene Kabanov 2021-05-14 16:02:03 +03:00 committed by GitHub
parent 80e28d15d6
commit db39cdcdc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
# MIT license (LICENSE-MIT)
import std/[macros, options, uri, sequtils]
import chronos, chronos/apps/http/[httpcommon, httptable, httpclient]
import chronicles
import chronicles except error
import httputils, stew/base10
import segpath, common, macrocommon, agent
export httpclient, httptable, httpcommon, options, agent, httputils
@ -19,9 +19,11 @@ template meth*(v: HttpMethod) {.pragma.}
type
RestClient* = object of RootObj
session: HttpSessionRef
address: HttpAddress
address*: HttpAddress
agent: string
RestClientRef* = ref RestClient
RestPlainResponse* = object
status*: int
contentType*: string
@ -40,8 +42,6 @@ type
RestReturnKind {.pure.} = enum
Status, PlainResponse, GenericResponse, Value
RestClientRef* = ref RestClient
RestDefect* = object of Defect
RestError* = object of CatchableError
RestEncodingError* = object of RestError