uvhttp_config.c
configmanagesystemimplement
Functions
uvhttp_config_new(uvhttp_config_t **config)
Create new configuration object.
Parameters:
config: Output parameter, used to receive the created object
Returns: UVHTTP_OK on success, other values represent failure
Note: On success, *config is set to a valid object, must use uvhttp_config_free to release Note: On failure, *config is set to NULL
uvhttp_config_free(uvhttp_config_t *config)
Return Type: void
uvhttp_config_set_defaults(uvhttp_config_t *config)
Return Type: void
uvhttp_config_validate(const uvhttp_config_t *config)
Return Type: int
uvhttp_config_print(const uvhttp_config_t *config)
Return Type: void
uvhttp_config_get_current(uvhttp_context_t *context)
Return Type: [uvhttp_config_t](#structuvhttp__config__t) const*
uvhttp_config_update_max_connections(uvhttp_context_t *context, int max_connections)
Return Type: int
uvhttp_config_update_read_buffer_size(uvhttp_context_t *context, int buffer_size)
Return Type: int
uvhttp_config_update_size_limits(uvhttp_context_t *context, size_t max_body_size, size_t max_header_size)
Return Type: int
uvhttp_config_set_current(uvhttp_context_t *context, uvhttp_config_t *config)
Return Type: void