Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_HTTP_HTTPCLI_H
20 #define GRPC_CORE_LIB_HTTP_HTTPCLI_H
29 #include "absl/base/thread_annotations.h"
30 #include "absl/status/statusor.h"
31 #include "absl/types/optional.h"
57 #define GRPC_HTTPCLI_USER_AGENT "grpc-httpcli/0.0"
61 const char* host,
const char*
path,
198 &
req->continue_on_read_after_schedule_on_exec_ctx_,
218 &
req->continue_done_write_after_schedule_on_exec_ctx_,
const Timestamp deadline_
static void ContinueOnReadAfterScheduleOnExecCtx(void *user_data, grpc_error_handle error)
absl::string_view get(const Cont &c)
void OnReadInternal(grpc_error_handle error) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
void NextAddress(grpc_error_handle error) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
grpc_closure continue_done_write_after_schedule_on_exec_ctx_
static void post(QUEUE *q, enum uv__work_kind kind)
ABSL_NAMESPACE_BEGIN class ABSL_MUST_USE_RESULT StatusOr
struct grpc_pollset_set grpc_pollset_set
void grpc_endpoint_read(grpc_endpoint *ep, grpc_slice_buffer *slices, grpc_closure *cb, bool urgent, int min_progress_size)
static void ContinueDoneWriteAfterScheduleOnExecCtx(void *arg, grpc_error_handle error)
absl::StatusOr< HierarchicalAddressMap > addresses_
void DoHandshake(const grpc_resolved_address *addr) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
grpc_closure continue_on_read_after_schedule_on_exec_ctx_
void OnWritten() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
static OrphanablePtr< HttpRequest > Post(URI uri, const grpc_channel_args *args, grpc_polling_entity *pollent, const grpc_http_request *request, Timestamp deadline, grpc_closure *on_done, grpc_http_response *response, RefCountedPtr< grpc_channel_credentials > channel_creds) GRPC_MUST_USE_RESULT
int(* grpc_httpcli_post_override)(const grpc_http_request *request, const char *host, const char *path, const char *body_bytes, size_t body_size, grpc_core::Timestamp deadline, grpc_closure *on_complete, grpc_http_response *response)
static void SetOverride(grpc_httpcli_get_override get, grpc_httpcli_post_override post, grpc_httpcli_put_override put)
void AppendError(grpc_error_handle error) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
const absl::optional< std::function< void()> > test_only_generate_response_
static void DoneWrite(void *arg, grpc_error_handle error)
void OnResolved(absl::StatusOr< std::vector< grpc_resolved_address >> addresses_or)
RefCountedPtr< grpc_channel_credentials > channel_creds_
HttpRequest(URI uri, const grpc_slice &request_text, grpc_http_response *response, Timestamp deadline, const grpc_channel_args *channel_args, grpc_closure *on_done, grpc_polling_entity *pollent, const char *name, absl::optional< std::function< void()>> test_only_generate_response, RefCountedPtr< grpc_channel_credentials > channel_creds)
int(* grpc_httpcli_put_override)(const grpc_http_request *request, const char *host, const char *path, const char *body_bytes, size_t body_size, grpc_core::Timestamp deadline, grpc_closure *on_complete, grpc_http_response *response)
void DoRead() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
RefCountedPtr< HttpRequest > Ref() GRPC_MUST_USE_RESULT
#define ABSL_EXCLUSIVE_LOCKS_REQUIRED(...)
static void OnRead(void *user_data, grpc_error_handle error)
void grpc_polling_entity_del_from_pollset_set(grpc_polling_entity *pollent, grpc_pollset_set *pss_dst)
ResourceQuotaRefPtr resource_quota_
grpc_slice_buffer outgoing_
const grpc_channel_args * channel_args_
#define GRPC_ERROR_REF(err)
int(* grpc_httpcli_get_override)(const grpc_http_request *request, const char *host, const char *path, grpc_core::Timestamp deadline, grpc_closure *on_complete, grpc_http_response *response)
static OrphanablePtr< HttpRequest > Get(URI uri, const grpc_channel_args *args, grpc_polling_entity *pollent, const grpc_http_request *request, Timestamp deadline, grpc_closure *on_done, grpc_http_response *response, RefCountedPtr< grpc_channel_credentials > channel_creds) GRPC_MUST_USE_RESULT
static void OnHandshakeDone(void *arg, grpc_error_handle error)
std::unique_ptr< T, Deleter > OrphanablePtr
void Finish(grpc_error_handle error) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
RefCountedPtr< HandshakeManager > handshake_mgr_ ABSL_GUARDED_BY(mu_)
static void Run(const DebugLocation &location, grpc_closure *closure, grpc_error_handle error)
grpc_pollset_set * pollset_set_
static OrphanablePtr< HttpRequest > Put(URI uri, const grpc_channel_args *args, grpc_polling_entity *pollent, const grpc_http_request *request, Timestamp deadline, grpc_closure *on_done, grpc_http_response *response, RefCountedPtr< grpc_channel_credentials > channel_creds) GRPC_MUST_USE_RESULT
const grpc_slice request_text_
std::unique_ptr< Parser > parser_
static void TestOnlySetOnHandshakeDoneIntercept(void(*intercept)(HttpRequest *req))
void StartWrite() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
grpc_polling_entity * pollent_
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:14