jaguar_resty 2.1.1 jaguar_resty: ^2.1.1 copied to clipboard
Build fluent functional Restful clients
jaguar_resty #
Build fluent functional Restful clients
Features #
- Fluent API to set:
- Hierarchical paths
resty.get('http://localhost:8080', '/api/book/${id}').go()
resty.get('api').path('book').path(id).go()
- Query parameters
resty.get('/books').query('page', '2').list()
- Headers
resty.get('/book').header('page', '2').one()
- Body
resty.post('/book').json(Book('1', 'Harry potter')).one()
- Hierarchical paths
- JSON request encoding
resty.post('/book').json(Book('1', 'Harry potter')).one()
- JSON request decoding
resty.get('/book/1').one(Book.map)
- URL encoded forms
- Multipart form
- Cookie jar
- Interceptors
- Authenticators