Macros | Functions
duplicate_header.cc File Reference
#include <string.h>
#include <grpc/grpc.h>
#include "src/core/lib/surface/server.h"
#include "test/core/bad_client/bad_client.h"
#include "test/core/end2end/cq_verifier.h"
Include dependency graph for duplicate_header.cc:

Go to the source code of this file.

Macros

#define HEADER_STR
 
#define PAYLOAD_STR
 
#define PFX_STR
 

Functions

int main (int argc, char **argv)
 
static void * tag (intptr_t t)
 
static void verifier (grpc_server *server, grpc_completion_queue *cq, void *)
 

Macro Definition Documentation

◆ HEADER_STR

#define HEADER_STR
Value:
"\x00\x00\xc9\x01\x04\x00\x00\x00\x01" /* headers: generated from \
simple_request.headers in this \
directory */ \
"\x10\x05:path\x08/foo/bar" \
"\x10\x07:scheme\x04http" \
"\x10\x07:method\x04POST" \
"\x10\x0a:authority\x09localhost" \
"\x10\x0c" \
"content-type\x10" \
"application/grpc" \
"\x10\x14grpc-accept-encoding\x15" \
"deflate,identity,gzip" \
"\x10\x02te\x08trailers" \
"\x10\x0auser-agent\"bad-client grpc-c/0.12.0.0 (linux)"

Definition at line 31 of file duplicate_header.cc.

◆ PAYLOAD_STR

#define PAYLOAD_STR
Value:
"\x00\x00\x20\x00\x00\x00\x00\x00\x01" \
"\x00\x00\x00\x00"

Definition at line 45 of file duplicate_header.cc.

◆ PFX_STR

#define PFX_STR
Value:
"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \
"\x00\x00\x00\x04\x00\x00\x00\x00\x00" /* settings frame */

Definition at line 27 of file duplicate_header.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 121 of file duplicate_header.cc.

◆ tag()

static void* tag ( intptr_t  t)
static

Definition at line 49 of file duplicate_header.cc.

◆ verifier()

static void verifier ( grpc_server server,
grpc_completion_queue cq,
void *   
)
static

Definition at line 51 of file duplicate_header.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:11