Procs
proc newHttpConnection*(conn: BytePipe; defaultHost: string): Future[HttpConnection] {.
async.}- Source Edit
proc newHttpConnection*(host: string; port = 80): Future[HttpConnection] {.
async.}- Source Edit
proc newHttpConnection*(req: HttpRequest): Future[HttpConnection]
- Source Edit
proc sendOnlyRequest*(conn: HttpConnection; request: HttpRequest): Future[void] {.
async.}- Source Edit
proc sendRequest*(conn: HttpConnection; request: HttpRequest; closeConnection = false): Future[ void] {.
async.}- Source Edit
proc readHeaders*(conn: HttpConnection): Future[HttpResponse] {.
async.}- Source Edit
proc readWithContentLength*(conn: HttpConnection; length: int64): ByteInput
- Source Edit
proc readChunked*(conn: HttpConnection): ByteInput
- Source Edit
proc readResponse*(conn: HttpConnection; expectingBody = true): Future[HttpResponse] {.
async.}- Source Edit
proc request*(conn: HttpConnection; req: HttpRequest; closeConnection = false): Future[ HttpResponse] {.
async.}- Source Edit
proc request*(req: HttpRequest): Future[HttpResponse] {.
async.}- Source Edit