nim-websock/ws/http.nim
Dmitriy Ryajov 64da1a4344
Rework http (#38)
* wip

* wip

* move http under ws folder

* use asyctest

* wip

* wip

* rework response sending

* make example work with latest changes

* wip request/response

* misc

* fix example to use new http layer

* pass tls flags to client

* more cleanup

* unused imports

* more unsused imports

* better headers

* add helpre sendError

* export sendError

* attach selected proto to session

* move proto to session

* handle unsupported version

* fix tests

* comment out for now

* fix utf8 tests

* allow tests to be ran in tls

* misc

* use Port type

* add tls flags

* better api

* run tls tests

* fix tests on windows

* allow running tests with tls

* mic

* wip

* fix autobahn ci

* handle close

* cleanup

* logging and error handling

* remove old stream
2021-05-31 20:39:14 -06:00

14 lines
337 B
Nim

import std/uri
import pkg/[
chronos,
chronos/apps/http/httptable,
chronos/streams/tlsstream,
httputils]
import ./http/client, ./http/server, ./http/common
export uri, httputils, client, server, httptable, tlsstream
export TlsHttpClient, HttpClient, HttpServer,
HttpResponse, HttpRequest, closeWait, sendResponse,
sendError