httpsrv Functions
Last updated March 2020
Name | Description |
---|---|
ec_httpsrv_ctx_get | Gets the per-request closure blobject from a session |
ec_httpsrv_ctx_set | Sets a per-request closure blobject on a session |
ec_httpsrv_register | Registers an HTTP URI handler |
ec_httpsrv_request_accept_construct_get | Returns the accept construct from the current session |
ec_httpsrv_request_content_type_get | Gets the content type and charset from the session request |
ec_httpsrv_request_data_get | Gets a handle on the request payload data |
ec_httpsrv_request_data_get_json | Gets a JSON object representation of the request payload data |
ec_httpsrv_request_data_get_string | Buffers request payload data to memory and returns a string pointer to it |
ec_httpsrv_request_data_get_xml | Gets an XML object representation of the request payload data |
ec_httpsrv_request_event_get | Returns the Event from the current session |
ec_httpsrv_request_event_get_scheduler_inst | Returns the scheduler for an Event from the current session |
ec_httpsrv_request_header_get | Gets the value of a specific HTTP request header |
ec_httpsrv_request_method_get | Gets the method from the session request |
ec_httpsrv_request_subject_cn_get | Gets the peer SSL certificate common name string |
ec_httpsrv_request_url_get | Gets the request URL |
ec_httpsrv_request_username_get | Gets the authenticated user name |
ec_httpsrv_response_append | Append data to the session response output |
ec_httpsrv_response_flush | Flush pending session response output |
ec_httpsrv_response_header_set | Sets a header in the session response |
ec_httpsrv_response_io | Set the session response to an IO object |
ec_httpsrv_response_json | Set the session response to a JSON object |
ec_httpsrv_response_printf | Format and append a string to the session response output |
ec_httpsrv_response_status_denied | Sets the HTTP status to indicate a 403 error, and sets content-type |
ec_httpsrv_response_status_error | Sets the HTTP status to indicate a server error, and sets content-type |
ec_httpsrv_response_status_not_found | Sets the HTTP status to indicate a 404 error, and sets content-type |
ec_httpsrv_response_status_ok | Sets the HTTP status to indicate success, and sets content-type |
ec_httpsrv_response_status_set | Sets the HTTP status for the session response |
ec_httpsrv_response_status_set_std | Sets the HTTP status for the session response |
ec_httpsrv_response_string | Set the session response to an ec_string object |
ec_httpsrv_response_vprintf | Format and append a string to the session response output |
ec_httpsrv_response_xml | Set the session response to an XML object |
ec_httpsrv_service_ctx_get | Returns the closure parameter that was registered with the handler |
ec_httpsrv_session_resume | Arranges for a suspended http session to be resumed |
ec_httpsrv_session_suspend | Arranges for an http session to be suspended |
The APIs documented here relate to the httpsrv module.
Was this page helpful?