- Same API as stdlib
HttpClient
. - 1 file, 0 dependencies, 300 lines, pure Nim.
- No Curl nor LibCurl dependencies.
- Async and sync client.
- Works with ARC and ORC.
- Works with
strictFuncs
. - Uses
Uri
type for URL. - Response has
isIpv6: bool
attribute. GET
andPOST
from JSON to JSON directly.downloadFile
that takesopenArray
of URLs.- HTTP Headers can be compile-time immutable
const
. - Proxy support, with Auth.
- Timeout support for Async and Sync.
- Option to skip parsing Headers or Status or Body, if you dont need them.
- HTTP Methods use
HttpMethod
enum, not strings. Status code useHttpCode
not integers. - No heavy objects, designed as a tiny
proc
attached to a vanillaSocket
. - Share a
Socket
with multiple clients, reuseSocket
. - Theres no open/close functions for the client, just call
get()
orpost()
. - Works with Threads, Tasks, and other Async implementations.
- Uses very few symbols from stdlib, very future proof.
runnableExamples
withdoAssert
for everything.- Documentation online.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
HTTP Harpoon, HTTP Client
License
juancarlospaco/harpoon
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
HTTP Harpoon, HTTP Client