Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2019-12-21 | chore(crimp): Prepare for depot merge | Vincent Ambo | 9 | -150/+0 | |
2019-02-27 | chore(cargo): Bump version to v0.2.2 | Vincent Ambo | 1 | -1/+1 | |
2019-02-27 | refactor(tests): Use local httpbin instance in tests | Vincent Ambo | 2 | -10/+23 | |
Instead of relying on the external httpbin instance which is occasionally wonky, use Docker to spin up a local instance in Travis CI when testing. This fixes #1. | |||||
2019-02-27 | fix(lib): Support large body uploads with repeated read callbacks | Vincent Ambo | 2 | -12/+42 | |
When uploading larger amounts of data, cURL will call the read callback incrementally multiple times to receive all the expected data. Previously if the size of the data to upload exceeded the size of the initial buffer provided by cURL, the write (and thus the request) would fail. This changes the logic to write the data in chunks of a size that are acceptable to cURL. | |||||
2019-02-26 | docs(README): Fix crates.io badge URL | Vincent Ambo | 1 | -1/+1 | |
2019-02-26 | chore(cargo): Bump version to v0.2.0 | Vincent Ambo | 1 | -1/+1 | |
2019-02-26 | refactor: Add a method per HTTP verb on `Request` | Vincent Ambo | 2 | -20/+34 | |
Instead of the `Request::new` "constructor" for requests, add a method per HTTP verb which makes the initialisation slightly more concise. | |||||
2019-02-26 | feat: Introduce `Response::error_for_status` method | Vincent Ambo | 2 | -1/+27 | |
This method makes it possible to let users map responses with unexpected HTTP statuses to custom errors while staying inside a chain of results. | |||||
2019-02-26 | feat: Re-export the `curl::init` method | Vincent Ambo | 1 | -0/+9 | |
2019-02-26 | test: Add timeouts to HTTP POST tests | Vincent Ambo | 1 | -0/+2 | |
Occasionally (and seemingly most commonly in travis-ci), httpbin does not respond to POST requests. | |||||
2019-02-26 | feat: Add `Request::with_handle` method | Vincent Ambo | 1 | -0/+21 | |
This method acts as an "escape-hatch" which lets the user configure whatever they want on the cURL easy handle. No warranty! | |||||
2019-02-26 | feat: Add `Request::timeout` method | Vincent Ambo | 1 | -0/+8 | |
2019-02-26 | refactor: Use cURL's own basic auth implementation | Vincent Ambo | 3 | -21/+15 | |
Drops the dependency on the base64-crate, which it turns out isn't necessary as cURL has this built-in. | |||||
2019-02-26 | docs(README): Add badges for travis, docs.rs and crates.io | Vincent Ambo | 1 | -0/+4 | |
2019-02-26 | chore(build): Configure Travis CI builds | Vincent Ambo | 1 | -0/+2 | |
2019-02-26 | chore(cargo): Prepare Cargo manifest for crate release | Vincent Ambo | 1 | -0/+4 | |
2019-02-26 | chore: License under GPL-3.0-or-later | Vincent Ambo | 3 | -0/+692 | |
2019-02-26 | docs: Update README, add contribution guidelines & CoC | Vincent Ambo | 3 | -1/+145 | |
... getting all the docs in order for publication ... | |||||
2019-02-26 | feat: Split `tls_key_password` into a separate function | Vincent Ambo | 1 | -8/+11 | |
WHen configuring a PKCS12 certificate it is more useful to be able to set this separately, as the `tls_client_key` function is never called. | |||||
2019-02-26 | feat: Add utility functions for TLS client certificate usage | Vincent Ambo | 1 | -0/+45 | |
2019-02-26 | test: Add test for token-based authentication (bearer_auth) | Vincent Ambo | 1 | -0/+9 | |
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 | 3 | -1/+29 | |
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 | 2 | -1/+9 | |
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 | 2 | -25/+25 | |
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 | test: Add tests for HTTP verbs & POSTing data | Vincent Ambo | 1 | -0/+94 | |
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 | 2 | -7/+18 | |
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 | 2 | -13/+66 | |
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 | 4 | -0/+181 | |
2019-02-25 | chore: Initial commit | Vincent Ambo | 0 | -0/+0 | |