Gearman Developer Documentation

HTTP Protocol Declarations
[Protocol Plugins]

Modules

 Static HTTP Protocol Definitions

Functions

gearman_return_t gearmand_protocol_http_conf (gearman_conf_st *conf)
gearman_return_t gearmand_protocol_http_init (gearmand_st *gearmand, gearman_conf_st *conf)
gearman_return_t gearmand_protocol_http_deinit (gearmand_st *gearmand)

Detailed Description

This module provides a simple HTTP interface into the Gearman job server. It is also meant to serve as an example of how other protocols can plug into the server. This module will ignore all headers except:

Content-Length: SIZE Connection: Keep-Alive X-Gearman-Unique: UNIQUE_KEY X-Gearman-Background: true X-Gearman-Priority: HIGH | LOW

All HTTP requests are translated into SUBMIT_JOB requests, and only WORK_COMPLETE, WORK_FAIL, and JOB_CREATED responses are returned. JOB_CREATED packet are only sent back if the "X-Gearman-Background: true" header is given.


Function Documentation

gearman_return_t gearmand_protocol_http_conf ( gearman_conf_st conf  ) 

Get module configuration options.

Definition at line 59 of file protocol_http.c.

gearman_return_t gearmand_protocol_http_init ( gearmand_st gearmand,
gearman_conf_st conf 
)

Initialize the HTTP protocol module.

Definition at line 73 of file protocol_http.c.

gearman_return_t gearmand_protocol_http_deinit ( gearmand_st gearmand  ) 

De-initialize the HTTP protocol module.

Generated on Tue Jun 15 11:40:21 2010 by  doxygen 1.6.3