libdas2
das2 core C utilities
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
http.h File Reference

functions for reading and writing http messages More...

Detailed Description

functions for reading and writing http messages

#include <stdbool.h>
#include <das2/array.h>
#include <das2/credentials.h>

Go to the source code of this file.

Data Structures

struct  das_url
 A parsed URL structure. More...
 
struct  DasHttpResp
 Encapsulates the status of a HTTP resource request. More...
 

Functions

char * das_ssl_getErr (const void *vpSsl, int nRet)
 Get a new string allocated on the heap explaining an SSL error or NULL in nRet == 0. More...
 
void DasHttpResp_freeFields (DasHttpResp *pRes)
 Free any fields that contain allocated memory This will not free the pRes structure itself, only sub-items such as pMime etc. More...
 
bool das_http_getBody (const char *sUrl, const char *sAgent, DasCredMngr *pMgr, DasHttpResp *pRes, float rConSec)
 Get a socket positioned at the start of a remote resource. More...
 
DasArydas_http_readUrl (const char *sUrl, const char *sAgent, DasCredMngr *pMgr, DasHttpResp *pRes, int64_t nLimit, float rConSec)
 Read all the bytes for a URL into a byte array. More...
 

Function Documentation

void DasHttpResp_freeFields ( DasHttpResp pRes)

Free any fields that contain allocated memory This will not free the pRes structure itself, only sub-items such as pMime etc.

To free the over all structure (if it was allocated on the heap) call free(pRes).