h2_c1.h File Reference
#include <http_core.h>
Include dependency graph for h2_c1.h:

Go to the source code of this file.


 APR_OPTIONAL_FN_TYPE (ap_logio_add_bytes_in) *h2_c_logio_add_bytes_in
 APR_OPTIONAL_FN_TYPE (ap_logio_add_bytes_out) *h2_c_logio_add_bytes_out
apr_status_t h2_c1_child_init (apr_pool_t *pool, server_rec *s)
apr_status_t h2_c1_setup (conn_rec *c, request_rec *r, server_rec *s)
apr_status_t h2_c1_run (conn_rec *c)
apr_status_t h2_c1_pre_close (struct h2_conn_ctx_t *ctx, conn_rec *c)
int h2_c1_allows_direct (conn_rec *c)
int h2_c1_can_upgrade (request_rec *r)
void h2_c1_register_hooks (void)
void h2_c1_child_stopping (apr_pool_t *pool, int graceful)

Function Documentation


APR_OPTIONAL_FN_TYPE ( ap_logio_add_bytes_in  )


APR_OPTIONAL_FN_TYPE ( ap_logio_add_bytes_out  )

◆ h2_c1_allows_direct()

int h2_c1_allows_direct ( conn_rec c)

Check if the connection allows a direct detection of HTTPP/2, as configurable by the H2Direct directive.

cthe connection to check on
!= 0 if direct detection is enabled

◆ h2_c1_can_upgrade()

int h2_c1_can_upgrade ( request_rec r)

Check if the "Upgrade" HTTP/1.1 mode of protocol switching is enabled for the given request.

rthe request to check
!= 0 iff Upgrade switching is enabled

◆ h2_c1_child_init()

apr_status_t h2_c1_child_init ( apr_pool_t pool,
server_rec s 

◆ h2_c1_child_stopping()

void h2_c1_child_stopping ( apr_pool_t pool,
int  graceful 

Child is about to be stopped, release unused resources

◆ h2_c1_pre_close()

apr_status_t h2_c1_pre_close ( struct h2_conn_ctx_t ctx,
conn_rec c 

The primary connection is about to close. If we have not send a GOAWAY yet, this is the last chance.

◆ h2_c1_register_hooks()

void h2_c1_register_hooks ( void  )

◆ h2_c1_run()

apr_status_t h2_c1_run ( conn_rec c)

Run the HTTP/2 primary connection in synchronous fashion. Return when the HTTP/2 session is done and the connection will close or a fatal error occurred.

cthe http2 connection to run
APR_SUCCESS when session is done.

◆ h2_c1_setup()

apr_status_t h2_c1_setup ( conn_rec c,
request_rec r,
server_rec s 

Setup the primary connection and our context for HTTP/2 processing

cthe connection HTTP/2 is starting on
rthe upgrade request that still awaits an answer, optional
sthe server selected for this connection (can be != c->base_server)