A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
download.cc File Reference
#include "a11/net/http/download.h"
#include <array>
#include <cstdint>
#include <cstdio>
#include <filesystem>
#include <fstream>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <absl/status/status.h>
#include <absl/status/status_macros.h>
#include <absl/status/statusor.h>
#include <absl/strings/ascii.h>
#include <absl/strings/str_cat.h>
#include <absl/strings/str_format.h>
#include <openssl/evp.h>
#include <unistd.h>
#include "a11/concurrency/executor.h"
#include "a11/concurrency/future.h"
#include "a11/net/http/fetch.h"

Namespaces

namespace  a11
 
namespace  a11::net
 

Functions

absl::StatusOr< std::string > a11::net::FileSha1 (const std::filesystem::path &path)
 Computes the SHA-1 of a file, as lowercase hex.
 
a11::Future< std::filesystem::path > a11::net::Download (std::string url, DownloadOptions options)
 Downloads url to options.destination, verified and atomically.