src/http_client.c File Reference

HTTP client handler. More...

Data Structures

struct  hcl_session_tag

Typedefs

typedef struct hcl_session_tag hcl_session_s

Functions

con_upstream_action_e hcl_read (con_connection_s *connection)
 Called when it's time to read data from the connection.
bool hcl_accept (con_connection_s *connection)
 Called when a client is accepted by the connection module.
void hcl_close (con_connection_s *connection, con_close_reason_e reason)
 Called when a connection is closed.

Detailed Description

HTTP client handler.

Date:
19 Feb 2010
Author:
Zachary Sims <zacs7@users.sourceforge.net>

Module prefix: hcl_

$Id$


Typedef Documentation


Function Documentation

bool hcl_accept ( con_connection_s connection  ) 

Called when a client is accepted by the connection module.

Parameters:
connection The connection that was accepted.
Returns:
true if we're happy. false if we want the connection to be closed.
void hcl_close ( con_connection_s connection,
con_close_reason_e  reason 
)

Called when a connection is closed.

Either by us, or the other end.

Parameters:
connection The connection to close, valid to read or write from.
reason The reason for the close.

Todo:
After all data is written, then close?

con_upstream_action_e hcl_read ( con_connection_s connection  ) 

Called when it's time to read data from the connection.

Parameters:
connection The connection with data on it.
Returns:
CON_UPSTREAM_CLOSE if the connection should be closed.

Generated by  doxygen 1.6.2