Android-cuttlefish cvd tool
Classes | Namespaces | Enumerations | Functions | Variables
http_client.h File Reference
#include <functional>
#include <optional>
#include <string>
#include <type_traits>
#include <vector>
#include "absl/strings/string_view.h"
#include "fmt/format.h"
#include "cuttlefish/result/result.h"
Include dependency graph for http_client.h:

Go to the source code of this file.

Classes

struct  cuttlefish::HttpVoidResponse
 
struct  cuttlefish::HttpHeader
 
struct  cuttlefish::HttpResponse< T >
 
struct  cuttlefish::HttpRequest
 
class  cuttlefish::HttpClient
 

Namespaces

namespace  cuttlefish
 

Enumerations

enum class  cuttlefish::HttpMethod { cuttlefish::kGet , cuttlefish::kPost , cuttlefish::kDelete , cuttlefish::kHead }
 

Functions

std::optional< absl::string_view > cuttlefish::HeaderValue (const std::vector< HttpHeader > &headers, absl::string_view header_name)
 

Variables

static constexpr int cuttlefish::kTooManyRequestsCode = 429
 
static constexpr absl::string_view cuttlefish::kRetryAfterHeaderName = "Retry-After"