Apache2
h2_protocol.h File Reference

Go to the source code of this file.

Functions

const char * h2_protocol_err_description (unsigned int h2_error)
 
apr_status_t h2_protocol_init (apr_pool_t *pool, server_rec *s)
 
int h2_protocol_is_acceptable_c1 (conn_rec *c, request_rec *r, int require_all)
 

Variables

const char * h2_protocol_ids_clear []
 
const char * h2_protocol_ids_tls []
 

Function Documentation

◆ h2_protocol_err_description()

const char* h2_protocol_err_description ( unsigned int  h2_error)

Provide a user readable description of the HTTP/2 error code-

Parameters
h2_errorhttp/2 error code, as in rfc 7540, ch. 7
Returns
textual description of code or that it is unknown.

◆ h2_protocol_init()

apr_status_t h2_protocol_init ( apr_pool_t pool,
server_rec s 
)

◆ h2_protocol_is_acceptable_c1()

int h2_protocol_is_acceptable_c1 ( conn_rec c,
request_rec r,
int  require_all 
)

Check if the given primary connection fulfills the protocol requirements for HTTP/2.

Parameters
cthe connection
require_all!= 0 iff any missing connection properties make the test fail. For example, a cipher might not have been selected while the handshake is still ongoing.
Returns
!= 0 iff protocol requirements are met

Variable Documentation

◆ h2_protocol_ids_clear

const char* h2_protocol_ids_clear[]
extern

List of protocol identifiers that we support in cleartext negotiations. NULL terminated.

◆ h2_protocol_ids_tls

const char* h2_protocol_ids_tls[]
extern

List of protocol identifiers that we support in TLS encrypted negotiations (ALPN). NULL terminated.