1
/* Gearman server and library
2
* Copyright (C) 2008 Brian Aker, Eric Day
5
* Use and distribution licensed under the BSD license. See
6
* the COPYING file in the parent directory for full text.
11
* @brief HTTP Protocol Declarations
14
#ifndef __GEARMAN_PROTOCOL_HTTP_H__
15
#define __GEARMAN_PROTOCOL_HTTP_H__
22
* @addtogroup gearman_protocol_http HTTP Protocol Functions
23
* @ingroup gearman_protocol
24
* This module provides a simple HTTP interface into the Gearman job server. It
25
* is also meant to serve as an example of how other protocols can plug into
26
* the server. This module will ignore all headers except:
27
* Content-Length: SIZE
28
* Connection: Keep-Alive
29
* X-Gearman-Unique: UNIQUE_KEY
30
* X-Gearman-Background: true
31
* X-Gearman-Priority: HIGH | LOW
32
* All HTTP requests are translated into SUBMIT_JOB requests, and only
33
* WORK_COMPLETE, WORK_FAIL, and JOB_CREATED responses are returned.
34
* JOB_CREATED packet are only sent back if the "X-Gearman-Background: true"
40
* Get module configuration options.
43
gearman_return_t gearmand_protocol_http_conf(gearman_conf_st *conf);
46
* Initialize the HTTP protocol module.
49
gearman_return_t gearmand_protocol_http_init(gearmand_st *gearmand,
50
gearman_conf_st *conf);
53
* De-initialize the HTTP protocol module.
56
gearman_return_t gearmand_protocol_http_deinit(gearmand_st *gearmand);
64
#endif /* __GEARMAN_PROTOCOL_HTTP_H__ */