Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2019-02-26 | docs(lib): Document available features and update example | Vincent Ambo | 1 | -7/+20 | |
2019-02-26 | feat: Add optional `Request::basic_auth` utility function | Vincent Ambo | 1 | -0/+10 | |
This function adds a dependency on `base64` and is thus gated behind the (enabled by default) `basic_auth` feature. | |||||
2019-02-26 | feat: Add Response::is_success utility method | Vincent Ambo | 1 | -0/+8 | |
2019-02-26 | feat: Add `bearer_auth` helper function | Vincent Ambo | 1 | -1/+8 | |
Adds a helper function for setting `Bearer`-tokens in `Authorization` headers. | |||||
2019-02-26 | feat: Add support for form-encoded POST bodies | Vincent Ambo | 1 | -8/+57 | |
2019-02-26 | refactor: Move URL & method configuration to send() | Vincent Ambo | 1 | -16/+20 | |
This lets the builder proceed without returning a `Result` from the initial call, which makes for a slightly nicer API. | |||||
2019-02-26 | docs(lib): Update docstrings for rustdoc output | Vincent Ambo | 1 | -19/+63 | |
2019-02-26 | fix: Correctly configure body sizes before setting read_function | Vincent Ambo | 1 | -8/+15 | |
2019-02-26 | refactor: Use `mut self`-consuming builder functions | Vincent Ambo | 1 | -5/+4 | |
Writing the functions this way makes it slightly nicer to chain them without having to assign the request to an intermediate variable. | |||||
2019-02-26 | refactor: Introduce `json` feature and make it optional | Vincent Ambo | 1 | -5/+12 | |
Gates support for `serde_json` behind a Cargo feature called `json` that is enabled by default. | |||||
2019-02-26 | feat: Support JSON body serialization in requests & responses | Vincent Ambo | 1 | -13/+64 | |
Uses `serde_json` to provide serialisation and deserialisation of request/response bodies. | |||||
2019-02-26 | feat: Initial check-in of working client layer | Vincent Ambo | 1 | -0/+162 | |