Export async-related imports to allow partial imports. (#218)

This commit is contained in:
Eugene Kabanov 2021-08-26 14:22:29 +03:00 committed by GitHub
parent 9d80c7068f
commit 05c91418be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 17 additions and 11 deletions

View File

@ -11,7 +11,9 @@ import stew/[results, base10, base64], httputils
import ../../asyncloop, ../../asyncsync
import ../../streams/[asyncstream, tlsstream, chunkstream, boundstream]
import httptable, httpcommon, httpagent, httpbodyrw, multipart
export httptable, httpcommon, httpagent, httpbodyrw, multipart
export results, asyncloop, asyncsync, asyncstream, tlsstream, chunkstream,
boundstream, httptable, httpcommon, httpagent, httpbodyrw, multipart,
httputils
const
HttpMaxHeadersSize* = 8192

View File

@ -10,7 +10,7 @@ import std/[strutils, uri]
import stew/[results, endians2], httputils
import ../../asyncloop, ../../asyncsync
import ../../streams/[asyncstream, boundstream]
export results, httputils, strutils
export asyncloop, asyncsync, results, httputils, strutils
const
HeadersMark* = @[0x0d'u8, 0x0a'u8, 0x0d'u8, 0x0a'u8]

View File

@ -11,8 +11,8 @@ import stew/[results, base10], httputils
import ../../asyncloop, ../../asyncsync
import ../../streams/[asyncstream, boundstream, chunkstream]
import httptable, httpcommon, multipart
export httptable, httpcommon, httputils, multipart, asyncstream,
uri, tables, options, results
export asyncloop, asyncsync, httptable, httpcommon, httputils, multipart,
asyncstream, boundstream, chunkstream, uri, tables, options, results
type
HttpServerFlags* {.pure.} = enum

View File

@ -12,7 +12,7 @@ import stew/results
import ../../asyncloop
import ../../streams/[asyncstream, boundstream, chunkstream]
import httptable, httpcommon, httpbodyrw
export httptable, httpcommon, httpbodyrw, asyncstream
export asyncloop, httptable, httpcommon, httpbodyrw, asyncstream
const
UnableToReadMultipartBody = "Unable to read multipart message body"

View File

@ -9,7 +9,7 @@
import httpserver
import ../../asyncloop, ../../asyncsync
import ../../streams/[asyncstream, tlsstream]
export httpserver, asyncstream, tlsstream
export asyncloop, asyncsync, httpserver, asyncstream, tlsstream
type
SecureHttpServer* = object of HttpServer

View File

@ -14,6 +14,7 @@
import std/[sequtils, deques]
import ./asyncloop
export asyncloop
type
AsyncLock* = ref object of RootRef

View File

@ -10,6 +10,7 @@
{.push raises: [Defect].}
import ./asyncloop
export asyncloop
const
AllFutureStates* = {FutureState.Pending, FutureState.Cancelled,

View File

@ -11,7 +11,7 @@
import ../asyncloop, ../asyncsync
import ../transports/common, ../transports/stream
export asyncsync, stream, common
export asyncloop, asyncsync, stream, common
const
AsyncStreamDefaultBufferSize* = 4096

View File

@ -17,7 +17,7 @@
import std/options
import ../asyncloop, ../timer
import asyncstream, ../transports/stream, ../transports/common
export asyncstream, stream, timer, common
export asyncloop, asyncstream, stream, timer, common
type
BoundCmp* {.pure.} = enum

View File

@ -11,7 +11,7 @@
import ../asyncloop, ../timer
import asyncstream, ../transports/stream, ../transports/common
import stew/results
export asyncstream, stream, timer, common
export asyncloop, asyncstream, stream, timer, common, results
const
ChunkBufferSize = 4096

View File

@ -12,6 +12,7 @@
import bearssl, bearssl/cacert
import ../asyncloop, ../timer, ../asyncsync
import asyncstream, ../transports/stream, ../transports/common
export asyncloop, asyncsync, timer, asyncstream, bearssl
type
TLSStreamKind {.pure.} = enum

View File

@ -11,7 +11,8 @@
{.push raises: [Defect].}
import stew/endians2, std/strutils
import std/strutils
import stew/endians2
import ./common
export common

View File

@ -13,7 +13,7 @@
{.push raises: [Defect].}
import std/algorithm
from strutils import toHex
from std/strutils import toHex
import ./ipnet
export ipnet