coder / hat

HTTP API testing for Go
MIT License
36 stars 3 forks source link

feat: Add persistent opts #39

Closed Emyrk closed 3 years ago

Emyrk commented 3 years ago

Mainly for supporting persistent authentication for a sessioned hat. Without this, it's more tedious to always add the opt to all requests as a user of the lib

The alternative was messing with the http client transport, but the comments in the go lib explicitly state not to do that. The transport should not modify requests.