socketry / protocol-http

MIT License
23 stars 20 forks source link

Support for keyword arguments for `Request`/`Response`. #64

Closed ioquatix closed 1 month ago

ioquatix commented 1 month ago

It can be tricky to specify positional arguments as Request (especially) and Response take several arguments, some of which are not always specified.

We introduce support for keyword arguments which makes it easier to read and write code which deals with complex request/response scenarios.

client.get("/index.html", headers: ..., authority: ...)

Types of Changes

Contribution