Orca’s core API Reference#
The following section outlines Orca’s core API
- Common
- User-Agent
- Datatypes
- HTTP - general
- ua_init - create a User-Agent handle
- ua_cleanup - cleanup a User-Agent handle
- ua_set_url - set User-Agent base URL
- ua_get_url - get user-agent base url
- ua_set_opt - set connection’s default configuration
- ua_easy_run - quickly perform a transfer
- ua_conn_start - get a individual connection handle
- ua_conn_setup - set transfer attributes
- ua_conn_easy_perform - quickly perform a transfer
- ua_conn_add_header - add a header/field pair
- ua_conn_print_header - fill a buffer with all headers
- ua_conn_set_mime - build a libcurl based multipart body
- ua_conn_reset - reset a connection for immediate reuse
- ua_conn_stop - stop a connection
- ua_conn_get_easy_handle - get the libcurl’s easy_handle assigned
- ua_info_extract - extract information on latest request
- ua_info_cleanup - cleanup extracted information
- ua_info_get_header - get response header’s value from field
- ua_info_get_body - get response body
- WebSockets
- Datatypes
- ws_init - initialize a WebSockets handle
- ws_cleanup - cleanup a WebSockets handle
- ws_set_url - set WebSockets URL
- ws_add_header - add HTTP header
- ws_start - kickstart WebSockets connection
- ws_easy_run - check pending WebSockets transfers
- ws_end - exit from a WebSockets connection
- ws_get_status - get client’s connection status
- ws_close_opcode_print - print CLOSE code as string
- ws_timestamp - get WebSockets current timestamp
- ws_timestamp_update - update WebSockets current timestamp
- ws_send_binary - send binary control-frame
- ws_send_text - send text control-frame
- ws_ping - send PING control-frame
- ws_pong - send PONG control-frame
- ws_close - send CLOSE control-frame
- Cee-Utils