nativehttp

Simple interface to the native http client
Log | Files | Refs | README | LICENSE

README.md (877B)


      1 # nativehttp
      2 
      3 The goal for this package is to provide a minimal effective interface to the native system http client.
      4 It is not a goal to support all possible http features. 
      5 
      6 ## Support
      7 
      8 | OS      | API     |
      9 | ------- | ------- |
     10 | Windows | WinHttp |
     11 | macOS   | tbd     |
     12 | Linux   | tbd     |
     13 
     14 ## TinyGo
     15 
     16 A secondary goal is to support small binary sizes.
     17 
     18 Compile with TinyGo to achieve (at the moment) an ~800KB binary.
     19 
     20 Use [go-bindsize-treemap](https://github.com/nikolaydubina/go-binsize-treemap) to visualize the binary.
     21 
     22 This package still makes use of some "heavy" packages, such as "net/url", "strconv", "strings", "reflect" and "fmt".
     23 
     24 Through some effort those packages can be removed to result in a smaller binary.
     25 That effort involves copying functions and sometimes re-writing chunks of logic in a light-weight fashion to avoid taking on large dependencies.