| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 1 | -0/+1 |
| | | |||||
| * | Only send Content-Length when needed. | Nick Mathewson | 2023-11-27 | 1 | -12/+9 |
| | | | | | | | | | | | | | | | | According to RFC 9110: A user agent SHOULD send Content-Length in a request when the method defines a meaning for enclosed content and it is not sending Transfer-Encoding. For example, a user agent normally sends Content-Length in a POST request even when the value is 0 (indicating empty content). A user agent SHOULD NOT send a Content-Length header field when the request message does not contain content and the method semantics do not anticipate such data. Part of #1024 | ||||
| * | tor-dirclient, tor-netdoc: Add TODO SPECs. | Gabriela Moldovan | 2023-10-24 | 1 | -0/+1 |
| | | |||||
| * | tor-dirclient: Always set the Content-Length header (fmt). | Gabriela Moldovan | 2023-10-24 | 1 | -1/+4 |
| | | |||||
| * | tor-dirclient: Always set the Content-Length header. | Gabriela Moldovan | 2023-10-24 | 1 | -12/+5 |
| | | |||||
| * | tor-dirclient: Add a Content-Length header (fmt). | Gabriela Moldovan | 2023-10-24 | 1 | -1/+3 |
| | | |||||
| * | tor-dirclient: Add a Content-Length header. | Gabriela Moldovan | 2023-10-24 | 1 | -2/+16 |
| | | |||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 1 | -0/+1 |
| | | |||||
| * | tor-dirclient: Fix clippy lints. | Gabriela Moldovan | 2023-08-16 | 1 | -5/+5 |
| | | |||||
| * | tor-dirclient: Make Requestable return requests with String bodies. | Gabriela Moldovan | 2023-08-16 | 1 | -20/+9 |
| | | | | | | It's simpler to always use a `String` to represent directory request bodies. We no longer need the `StringBody` trait. | ||||
| * | tor-dirclient: Rename StringBody::str() to StringBody::as_str(). | Gabriela Moldovan | 2023-08-16 | 1 | -2/+2 |
| | | |||||
| * | tor-dirclient: Extend format test to check the body is formatted too (fmt) | Gabriela Moldovan | 2023-08-16 | 1 | -1/+4 |
| | | |||||
| * | tor-dirclient: Extend format test to check the body is formatted too. | Gabriela Moldovan | 2023-08-16 | 1 | -8/+22 |
| | | |||||
| * | tor-dirclient: Move request building to a test helper function. | Gabriela Moldovan | 2023-08-16 | 1 | -11/+13 |
| | | |||||
| * | tor-dirclient: Make the body type of a `Requestable` type configurable. | Gabriela Moldovan | 2023-08-16 | 1 | -2/+4 |
| | | | | | | | | | | Previously, the `Requestable` trait assumed the body of the request would always be empty (`http::Request<()>`). This change replaces the hardcoded `()` body type with the `Requestable::Body` associated type (which will allow implementors to create requests with non-empty bodies). This will enable us to reuse the `Requestable` trait for building `POST` requests for uploading descriptors. | ||||
| * | tor-dirclient: Rename download() to send_request(). | Gabriela Moldovan | 2023-08-16 | 1 | -0/+1 |
| | | | | | | | `download()` is actually a general-purpose function for sending HTTP requests on a stream. We will soon repurpose it for `POST`-ing descriptors, so let's rename it to `send_request`. | ||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 1 | -0/+1 |
| | | |||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 1 | -0/+1 |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | ||||
| * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 1 | -0/+8 |
| | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | ||||
| * | clippy: Use write! rather than push_str, format | Ian Jackson | 2022-05-11 | 1 | -2/+6 |
| | | | | | | This does involve unwrap, but of course that can't fail unless the formats fail, which would already panic (that's implied by format!). | ||||
| * | fix/silence clippy lints in test modules | Daniel Eades | 2021-09-08 | 1 | -0/+1 |
| | | |||||
| * | Move all crates into a `crates` subdirectory. | Nick Mathewson | 2021-08-27 | 1 | -0/+42 |
| This will cause some pain for now, but now is really the best time to do this kind of thing. | |||||
