Go to the documentation of this file.
   30   grpc_http_header hdr = {
const_cast<char*
>(
"x-yz"), 
const_cast<char*
>(
"abc")};
 
   34   const char* host = 
"example.com";
 
   42                                      "GET /index.html HTTP/1.1\r\n" 
   43                                      "Host: example.com\r\n" 
   44                                      "Connection: close\r\n" 
   54   grpc_http_header hdr = {
const_cast<char*
>(
"x-yz"), 
const_cast<char*
>(
"abc")};
 
   58   const char* host = 
"example.com";
 
   62   req.body = 
const_cast<char*
>(
"fake body");
 
   68                                      "POST /index.html HTTP/1.1\r\n" 
   69                                      "Host: example.com\r\n" 
   70                                      "Connection: close\r\n" 
   74                                      "Content-Type: text/plain\r\n" 
   75                                      "Content-Length: 9\r\n" 
   83   grpc_http_header hdr = {
const_cast<char*
>(
"x-yz"), 
const_cast<char*
>(
"abc")};
 
   87   const char* host = 
"example.com";
 
   95                                      "POST /index.html HTTP/1.1\r\n" 
   96                                      "Host: example.com\r\n" 
   97                                      "Connection: close\r\n" 
  111   const char* host = 
"example.com";
 
  112   hdrs[0].key = 
const_cast<char*
>(
"x-yz");
 
  113   hdrs[0].value = 
const_cast<char*
>(
"abc");
 
  114   hdrs[1].key = 
const_cast<char*
>(
"Content-Type");
 
  115   hdrs[1].value = 
const_cast<char*
>(
"application/x-www-form-urlencoded");
 
  119   req.body = 
const_cast<char*
>(
"fake%20body");
 
  120   req.body_length = 11;
 
  126                       "POST /index.html HTTP/1.1\r\n" 
  127                       "Host: example.com\r\n" 
  128                       "Connection: close\r\n" 
  131                       "Content-Type: application/x-www-form-urlencoded\r\n" 
  132                       "Content-Length: 11\r\n" 
  139 int main(
int argc, 
char** argv) {
 
  
GPRAPI void grpc_slice_unref(grpc_slice s)
return memset(p, 0, total)
#define GRPC_HTTPCLI_USER_AGENT
GRPCAPI void grpc_init(void)
GPRAPI int grpc_slice_str_cmp(grpc_slice a, const char *b)
GRPCAPI void grpc_shutdown(void)
grpc
Author(s): 
autogenerated on Fri May 16 2025 02:58:24