18 #define HTTP_NOCACHE \
19 "Cache-Control: private, max-age=0\r\n" \
27 "Connection: Keep-Alive\r\n" \
28 "Keep-Alive: timeout=60\r\n"
90 const gchar *ev_extra,
No surrogate was found for the client.
Definition: protocols_http.h:42
guint64 evs_cb_t
Callbacks are just gigantic integers, 0 meaning "no callback".
Definition: evs.h:23
Useful information about heartbeat timings.
Definition: protocols.h:64
http_close_reasons
Extends the reasons for closing a client.
Definition: protocols_http.h:33
void protocol_http_close(struct client *client, guint reason)
Terminates all communications with the client.
void protocol_http_init()
Sets up everything to run.
enum protocol_handles protocol_http_handles(struct client *client)
If the client really wants to HTTP Poll.
Client closed according to the HTTP standard.
Definition: protocols_http.h:37
protocol_handles
If a protocol can handle a client.
Definition: protocols.h:23
void protocol_http_send(struct client *client, const struct protocol_frames *pframes)
HTTP uses surrogates, so it has its own sending mechanisms to make sure messages are routed to the ri...
Sometimes was woefully wrong with the request.
Definition: protocols_http.h:47
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.
Everything that a client needs to function.
Definition: client.h:100
What a protocol needs to route messages around.
Definition: protocols.h:114
struct protocol * protocol_http
This protocol's functions.
Definition: protocols_http.h:58
Every header, definition, and whatnot QuickIO needs to run.
Client didn't send length.
Definition: protocols_http.h:52
protocol_status
Responses from the route() functions.
Definition: protocols.h:43
void protocol_http_heartbeat(struct client *client, const struct protocol_heartbeat *hb)
Sends a heartbeat to a client.
enum protocol_status protocol_http_route(struct client *client, gsize *used)
Routes the data received from a client.
Some protocols (HTTP, looking at you) need a few frames types depending on the type of client they're...
Definition: protocols.h:99