Provides support for HTTP long polling.
More...
Go to the source code of this file.
Provides support for HTTP long polling.
- Author
- Andrew Stone andre.nosp@m.w@cl.nosp@m.ovar..nosp@m.com
- Copyright
- 2012-2014 Clear Channel Inc.
Value:
"Connection: Keep-Alive\r\n" \
"Keep-Alive: timeout=60\r\n"
#define HTTP_NOCACHE
Completely disables caching for HTTP requests.
Definition: protocols_http.h:18
Headers that are common to each response.
Value:"Cache-Control: private, max-age=0\r\n" \
"Expires: -1\r\n"
Completely disables caching for HTTP requests.
Extends the reasons for closing a client.
| Enumerator |
|---|
| HTTP_DONE |
Client closed according to the HTTP standard.
|
| HTTP_NO_SURROGATE |
No surrogate was found for the client.
That's a 403.
|
| HTTP_BAD_REQUEST |
Sometimes was woefully wrong with the request.
|
| HTTP_LENGTH_REQUIRED |
Client didn't send length.
|
| struct protocol_frames protocol_http_frame |
( |
const gchar * |
ev_path, |
|
|
const gchar * |
ev_extra, |
|
|
const evs_cb_t |
server_cb, |
|
|
const gchar * |
json |
|
) |
| |
Frames data to send out to a client.
- Returns
- A buffer containing the frame. [transfer-full]