libwinyl
Loading...
Searching...
No Matches
Data Structures | Functions
header.h File Reference

Contains functions related to winyl_header. More...

Data Structures

struct  winyl_header
 Represents a HTTP header. More...
 

Functions

int winyl_has_header (winyl *host, char *name)
 Returns the index of the header with name.
 
int winyl_add_header (winyl *host, char *name, char *value)
 Adds a header to the request. Returns the index of it.
 
int winyl_remove_header (winyl *host, char *name)
 Removes a header from the request with name.
 
char * winyl_get_header_value (winyl *host, char *name)
 Gets the value of header with name.
 
int winyl_has_header2 (winyl_response *response, char *name)
 Variant of winyl_has_header that works with responses.
 
char * winyl_get_header_value2 (winyl_response *response, char *name)
 Variant of winyl_get_header_value that works with responses.