- 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. - 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.
forked from juancarlospaco/harpoon
-
Notifications
You must be signed in to change notification settings - Fork 0
HTTP Harpoon, HTTP Client
License
Vaipex/harpoon
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
HTTP Harpoon, HTTP Client
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Nim 100.0%