Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::FileTransferResult Struct Reference

Public Attributes

bool cached = false
std::string etag
std::vector< std::string > urls
std::string data
uint64_t bodySize = 0
std::optional< std::string > immutableUrl

Member Data Documentation

◆ cached

bool nix::FileTransferResult::cached = false

Whether this is a cache hit (i.e. the ETag supplied in the request is still valid). If so, data is empty.

◆ data

std::string nix::FileTransferResult::data

The response body.

◆ etag

std::string nix::FileTransferResult::etag

The ETag of the object.

◆ immutableUrl

std::optional<std::string> nix::FileTransferResult::immutableUrl

An "immutable" URL for this resource (i.e. one whose contents will never change), as returned by the Link: <url>; rel="immutable" header.

◆ urls

std::vector<std::string> nix::FileTransferResult::urls

All URLs visited in the redirect chain.

Note
Intentionally strings and not ParsedURLs so we faithfully return what cURL gave us.

The documentation for this struct was generated from the following file: