Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
header.h File Reference

Go to the source code of this file.

Data Structures

struct  curl_header
 

Macros

#define CURLH_HEADER   (1<<0) /* plain server header */
 
#define CURLH_TRAILER   (1<<1) /* trailers */
 
#define CURLH_CONNECT   (1<<2) /* CONNECT headers */
 
#define CURLH_1XX   (1<<3) /* 1xx headers */
 
#define CURLH_PSEUDO   (1<<4) /* pseudo headers */
 

Enumerations

enum  CURLHcode {
  CURLHE_OK , CURLHE_BADINDEX , CURLHE_MISSING , CURLHE_NOHEADERS ,
  CURLHE_NOREQUEST , CURLHE_OUT_OF_MEMORY , CURLHE_BAD_ARGUMENT , CURLHE_NOT_BUILT_IN
}
 

Functions

CURL_EXTERN CURLHcode curl_easy_header (CURL *easy, const char *name, size_t index, unsigned int origin, int request, struct curl_header **hout)
 
CURL_EXTERN struct curl_headercurl_easy_nextheader (CURL *easy, unsigned int origin, int request, struct curl_header *prev)
 

Macro Definition Documentation

◆ CURLH_1XX

#define CURLH_1XX   (1<<3) /* 1xx headers */

Definition at line 44 of file header.h.

◆ CURLH_CONNECT

#define CURLH_CONNECT   (1<<2) /* CONNECT headers */

Definition at line 43 of file header.h.

◆ CURLH_HEADER

#define CURLH_HEADER   (1<<0) /* plain server header */

Definition at line 41 of file header.h.

◆ CURLH_PSEUDO

#define CURLH_PSEUDO   (1<<4) /* pseudo headers */

Definition at line 45 of file header.h.

◆ CURLH_TRAILER

#define CURLH_TRAILER   (1<<1) /* trailers */

Definition at line 42 of file header.h.

Enumeration Type Documentation

◆ CURLHcode

enum CURLHcode
Enumerator
CURLHE_OK 
CURLHE_BADINDEX 
CURLHE_MISSING 
CURLHE_NOHEADERS 
CURLHE_NOREQUEST 
CURLHE_OUT_OF_MEMORY 
CURLHE_BAD_ARGUMENT 
CURLHE_NOT_BUILT_IN 

Definition at line 47 of file header.h.

47 {
49 CURLHE_BADINDEX, /* header exists but not with this index */
50 CURLHE_MISSING, /* no such header exists */
51 CURLHE_NOHEADERS, /* no headers at all exist (yet) */
52 CURLHE_NOREQUEST, /* no request with this number was used */
53 CURLHE_OUT_OF_MEMORY, /* out of memory while processing */
54 CURLHE_BAD_ARGUMENT, /* a function argument was not okay */
55 CURLHE_NOT_BUILT_IN /* if API was disabled in the build */
56} CURLHcode;
CURLHcode
Definition header.h:47
@ CURLHE_NOREQUEST
Definition header.h:52
@ CURLHE_NOHEADERS
Definition header.h:51
@ CURLHE_BADINDEX
Definition header.h:49
@ CURLHE_MISSING
Definition header.h:50
@ CURLHE_BAD_ARGUMENT
Definition header.h:54
@ CURLHE_OUT_OF_MEMORY
Definition header.h:53
@ CURLHE_OK
Definition header.h:48
@ CURLHE_NOT_BUILT_IN
Definition header.h:55

Function Documentation

◆ curl_easy_header()

CURL_EXTERN CURLHcode curl_easy_header ( CURL * easy,
const char * name,
size_t index,
unsigned int origin,
int request,
struct curl_header ** hout )

◆ curl_easy_nextheader()

CURL_EXTERN struct curl_header * curl_easy_nextheader ( CURL * easy,
unsigned int origin,
int request,
struct curl_header * prev )