Calls
Methods
Call a route with get, head, options, post, put, patch or del.
With a client in hand, every call is one method: you pass the path and an object of options, and get an Effect back.
Pick a method
A client has a method for each HTTP method:
get,headandoptionssend no body.post,put,patchanddelcan send one. It'sdelbecausedeleteis a reserved word.
What's next
- Path and query parameters: fill in the path and build a query.
- Send a body: send JSON, forms, text or bytes.
- Read the response: decode what comes back.
- Call options: look up every option a call takes.