syslog-ng source
http-worker.c File Reference
#include "http-worker.h"
#include "http.h"
#include "syslog-names.h"
#include "scratch-buffers.h"
#include "http-signals.h"
Include dependency graph for http-worker.c:

Macros

#define HTTP_HEADER_FORMAT_ERROR   http_header_format_error_quark()
 
#define HTTP_CODE_BASE(x)   ((x) / 100)
 
#define HTTP_RESPONSE_MAX_LENGTH   1024
 

Enumerations

enum  HttpHeaderFormatError { HTTP_HEADER_FORMAT_SLOT_CRITICAL_ERROR , HTTP_HEADER_FORMAT_SLOT_NON_CRITICAL_ERROR }
 

Functions

LogThreadedResult default_map_http_status_to_worker_status (HTTPDestinationWorker *self, const gchar *url, glong http_code)
 
LogThreadedDestWorker * http_dw_new (LogThreadedDestDriver *o, gint worker_index)
 

Macro Definition Documentation

◆ HTTP_CODE_BASE

#define HTTP_CODE_BASE (   x)    ((x) / 100)

◆ HTTP_HEADER_FORMAT_ERROR

#define HTTP_HEADER_FORMAT_ERROR   http_header_format_error_quark()

◆ HTTP_RESPONSE_MAX_LENGTH

#define HTTP_RESPONSE_MAX_LENGTH   1024

Enumeration Type Documentation

◆ HttpHeaderFormatError

Enumerator
HTTP_HEADER_FORMAT_SLOT_CRITICAL_ERROR 
HTTP_HEADER_FORMAT_SLOT_NON_CRITICAL_ERROR 

Function Documentation

◆ default_map_http_status_to_worker_status()

LogThreadedResult default_map_http_status_to_worker_status ( HTTPDestinationWorker self,
const gchar *  url,
glong  http_code 
)

◆ http_dw_new()

LogThreadedDestWorker* http_dw_new ( LogThreadedDestDriver *  o,
gint  worker_index 
)