fussybeaver / bollard

Docker daemon API in Rust
Apache License 2.0
901 stars 134 forks source link

Feature request: allow HTTP request customizations #436

Closed DDtKey closed 1 month ago

DDtKey commented 3 months ago

This issue comes from https://github.com/fussybeaver/bollard/issues/395#issuecomment-2245054968

It would be nice to be able to customize request to docker. There is a need to at least configure the headers for the testcontainers crate: https://github.com/testcontainers/testcontainers-rs/issues/576

But in general it would be more flexible to have some general way of doing this. For example, a callback function that accepts a mutable request entity (or builder). Hypothetically, this allows people to create an invalid request - but in this case it is already their responsibility if such an API is used.

fussybeaver commented 1 month ago

Closed due to implementation done in #459