![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | UploadData |
Public Member Functions | |
| FileTransferRequest (VerbatimURL uri) | |
| std::string | displayUri () const |
| std::string | verb (bool continuous=false) const |
| std::string | noun () const |
| void | setupForS3 () |
Public Attributes | |
| VerbatimURL | uri |
| Headers | headers |
| std::string | expectedETag |
| HttpMethod | method = HttpMethod::Get |
| ActivityId | parentAct |
| bool | decompress = true |
| std::optional< uint32_t > | retryDelayMs |
| std::optional< uint32_t > | retryDelayRateLimitedMs |
| std::optional< uint32_t > | retryMaxDelayMs |
| std::optional< uint32_t > | retryAttempts |
| std::optional< std::filesystem::path > | tlsCert |
| std::optional< std::filesystem::path > | tlsKey |
| std::optional< UploadData > | data |
| std::string | mimeType |
| std::function< PauseTransfer(std::string_view data)> | dataCallback |
| std::optional< UsernameAuth > | usernameAuth |
Friends | |
| struct | curlFileTransfer |
| std::string nix::FileTransferRequest::displayUri | ( | ) | const |
uri with any userinfo (user:password@) stripped, for use in progress, warning and error messages so credentials embedded in the URL don't leak into logs. Returns uri verbatim if it can't be parsed.
|
inline |
Returns the method description for logging purposes.
| std::function<PauseTransfer(std::string_view data)> nix::FileTransferRequest::dataCallback |
Callbacked invoked with a chunk of received data. Can pause the transfer by returning PauseTransfer::Yes. No data must be consumed if transfer is paused.
| std::optional<uint32_t> nix::FileTransferRequest::retryDelayMs |
Per-request retry overrides. When set, these take precedence over the global FileTransferSettings. Typically populated from a store's URL parameters (e.g. s3://bucket?retry-attempts=8).
| std::optional<std::filesystem::path> nix::FileTransferRequest::tlsCert |
Optional path to the client certificate in "PEM" format. Only used for TLS-based protocols.
| std::optional<std::filesystem::path> nix::FileTransferRequest::tlsKey |
Optional path to the client private key in "PEM" format. Only used for TLS-based protocols.
| std::optional<UsernameAuth> nix::FileTransferRequest::usernameAuth |
Optional username and password for HTTP basic authentication. When provided, these credentials will be used with curl's CURLOPT_USERNAME/PASSWORD option.