Skip to main content

NameDescription
ec_httpsrv_ctx_getGets the per-request closure blobject from a session
ec_httpsrv_ctx_setSets a per-request closure blobject on a session
ec_httpsrv_registerRegisters an HTTP URI handler
ec_httpsrv_request_accept_construct_getReturns the accept construct from the current session
ec_httpsrv_request_content_type_getGets the content type and charset from the session request
ec_httpsrv_request_data_getGets a handle on the request payload data
ec_httpsrv_request_data_get_jsonGets a JSON object representation of the request payload data
ec_httpsrv_request_data_get_stringBuffers request payload data to memory and returns a string pointer to it
ec_httpsrv_request_data_get_xmlGets an XML object representation of the request payload data
ec_httpsrv_request_event_getReturns the Event from the current session
ec_httpsrv_request_event_get_scheduler_instReturns the scheduler for an Event from the current session
ec_httpsrv_request_header_getGets the value of a specific HTTP request header
ec_httpsrv_request_method_getGets the method from the session request
ec_httpsrv_request_subject_cn_getGets the peer SSL certificate common name string
ec_httpsrv_request_url_getGets the request URL
ec_httpsrv_request_username_getGets the authenticated user name
ec_httpsrv_response_appendAppend data to the session response output
ec_httpsrv_response_flushFlush pending session response output
ec_httpsrv_response_header_setSets a header in the session response
ec_httpsrv_response_ioSet the session response to an IO object
ec_httpsrv_response_jsonSet the session response to a JSON object
ec_httpsrv_response_printfFormat and append a string to the session response output
ec_httpsrv_response_status_deniedSets the HTTP status to indicate a 403 error, and sets content-type
ec_httpsrv_response_status_errorSets the HTTP status to indicate a server error, and sets content-type
ec_httpsrv_response_status_not_foundSets the HTTP status to indicate a 404 error, and sets content-type
ec_httpsrv_response_status_okSets the HTTP status to indicate success, and sets content-type
ec_httpsrv_response_status_setSets the HTTP status for the session response
ec_httpsrv_response_status_set_stdSets the HTTP status for the session response
ec_httpsrv_response_stringSet the session response to an ec_string object
ec_httpsrv_response_vprintfFormat and append a string to the session response output
ec_httpsrv_response_xmlSet the session response to an XML object
ec_httpsrv_service_ctx_getReturns the closure parameter that was registered with the handler
ec_httpsrv_session_resumeArranges for a suspended http session to be resumed
ec_httpsrv_session_suspendArranges for an http session to be suspended

The APIs documented here relate to the httpsrv module.

Was this page helpful?