Session

Data Types:

struct ymo_http_session

Internal structure used to manage a yimmo session.

Definition
struct ymo_http_session {
    ymo_http_session_state_t  state;
    ymo_conn_t*               conn;
    ymo_http_exchange_t*      exchange;
    ymo_http_response_t*      response;
    ymo_bucket_t*             send_buffer;
    void*                     user_data;
};

Functions

ymo_http_session_t *ymo_http_session_create(ymo_conn_t *conn)
void ymo_http_session_free(ymo_http_session_t *session)
ymo_status_t ymo_http_session_add_new_http_request(ymo_http_session_t *http_session)
ymo_status_t ymo_http_session_free_request(ymo_http_session_t *http_session)
ymo_status_t ymo_http_session_init_response(ymo_http_session_t *session, ymo_http_exchange_t *exchange)
ymo_status_t ymo_http_session_add_response(ymo_http_session_t *http_session, ymo_http_response_t *response_in)
ymo_http_response_t *ymo_http_session_next_response(ymo_http_session_t *http_session)
ymo_status_t ymo_http_session_complete_response(ymo_http_session_t *http_session)
ymo_status_t ymo_http_session_is_read_ready(ymo_http_session_t *http_session)