Ulfius
HTTP Framework for REST Applications in C
|
Macros | |
#define | ULFIUS_STREAM_BLOCK_SIZE_DEFAULT 1024 |
#define | U_STREAM_END MHD_CONTENT_READER_END_OF_STREAM |
#define | U_STREAM_ERROR MHD_CONTENT_READER_END_WITH_ERROR |
#define | U_STREAM_SIZE_UNKNOWN MHD_SIZE_UNKNOWN |
#define | U_STREAM_SIZE_UNKOWN U_STREAM_SIZE_UNKNOWN |
#define | U_OK 0 |
No error. More... | |
#define | U_ERROR 1 |
Error. More... | |
#define | U_ERROR_MEMORY 2 |
Error in memory allocation. More... | |
#define | U_ERROR_PARAMS 3 |
Error in input parameters. More... | |
#define | U_ERROR_LIBMHD 4 |
Error in libmicrohttpd execution. More... | |
#define | U_ERROR_LIBCURL 5 |
Error in libcurl execution. More... | |
#define | U_ERROR_NOT_FOUND 6 |
Something was not found. More... | |
#define | U_ERROR_DISCONNECTED 7 |
Connection closed. More... | |
#define | U_CALLBACK_CONTINUE 0 |
Callback exited with success, continue to next callback. More... | |
#define | U_CALLBACK_IGNORE 1 |
Callback decided to be ignored, request.callback_position will not be incremented, continue to next callback. More... | |
#define | U_CALLBACK_COMPLETE 2 |
Callback exited with success, exit callback list. More... | |
#define | U_CALLBACK_UNAUTHORIZED 3 |
Request is unauthorized, exit callback list and return status 401. More... | |
#define | U_CALLBACK_ERROR 4 |
Error during request process, exit callback list and return status 500. More... | |
#define | U_COOKIE_SAME_SITE_EMPTY 0 |
Set same_site cookie property not set. More... | |
#define | U_COOKIE_SAME_SITE_STRICT 1 |
Set same_site cookie property to strict. More... | |
#define | U_COOKIE_SAME_SITE_LAX 2 |
Set same_site cookie property to lax. More... | |
#define | U_COOKIE_SAME_SITE_NONE 3 |
Set same_site cookie property to none. More... | |
#define | U_USE_IPV4 0x0001 |
Use instance in IPV4 mode only. More... | |
#define | U_USE_IPV6 0x0010 |
Use instance in IPV6 mode only. More... | |
#define | U_USE_ALL (U_USE_IPV4|U_USE_IPV6) |
Use instance in both IPV4 and IPV6 mode. More... | |
#define | U_SSL_VERIFY_PEER 0x0001 |
Verify TLS session with peers. More... | |
#define | U_SSL_VERIFY_HOSTNAME 0x0010 |
Verify TLS session with hostname. More... | |
#define | U_POST_PROCESS_NONE 0x0000 |
#define | U_POST_PROCESS_URL_ENCODED 0x0001 |
#define | U_POST_PROCESS_MULTIPART_FORMDATA 0x0010 |
Enumerations | |
enum | u_option { U_OPT_NONE = 0 , U_OPT_HTTP_VERB = 1 , U_OPT_HTTP_URL = 2 , U_OPT_HTTP_PROXY = 3 , U_OPT_CHECK_SERVER_CERTIFICATE = 5 , U_OPT_CHECK_SERVER_CERTIFICATE_FLAG = 6 , U_OPT_CHECK_PROXY_CERTIFICATE = 7 , U_OPT_CHECK_PROXY_CERTIFICATE_FLAG = 8 , U_OPT_FOLLOW_REDIRECT = 9 , U_OPT_CA_PATH = 10 , U_OPT_TIMEOUT = 11 , U_OPT_AUTH_BASIC_USER = 12 , U_OPT_AUTH_BASIC_PASSWORD = 13 , U_OPT_AUTH_BASIC = 14 , U_OPT_URL_PARAMETER = 15 , U_OPT_HEADER_PARAMETER = 16 , U_OPT_COOKIE_PARAMETER = 17 , U_OPT_POST_BODY_PARAMETER = 18 , U_OPT_URL_PARAMETER_REMOVE = 19 , U_OPT_HEADER_PARAMETER_REMOVE = 20 , U_OPT_COOKIE_PARAMETER_REMOVE = 21 , U_OPT_POST_BODY_PARAMETER_REMOVE = 22 , U_OPT_BINARY_BODY = 23 , U_OPT_STRING_BODY = 24 , U_OPT_JSON_BODY = 25 , U_OPT_CLIENT_CERT_FILE = 26 , U_OPT_CLIENT_KEY_FILE = 27 , U_OPT_CLIENT_KEY_PASSWORD = 28 , U_OPT_STATUS = 29 , U_OPT_AUTH_REALM = 30 , U_OPT_SHARED_DATA = 31 , U_OPT_HTTP_URL_APPEND = 32 } |
Angharad libraries To disable all yder log messages, this flag must be enabled
#define ULFIUS_STREAM_BLOCK_SIZE_DEFAULT 1024 |
#define U_STREAM_END MHD_CONTENT_READER_END_OF_STREAM |
#define U_STREAM_ERROR MHD_CONTENT_READER_END_WITH_ERROR |
#define U_STREAM_SIZE_UNKNOWN MHD_SIZE_UNKNOWN |
#define U_STREAM_SIZE_UNKOWN U_STREAM_SIZE_UNKNOWN |
#define U_OK 0 |
No error.
#define U_ERROR 1 |
Error.
#define U_ERROR_MEMORY 2 |
Error in memory allocation.
#define U_ERROR_PARAMS 3 |
Error in input parameters.
#define U_ERROR_LIBMHD 4 |
Error in libmicrohttpd execution.
#define U_ERROR_LIBCURL 5 |
Error in libcurl execution.
#define U_ERROR_NOT_FOUND 6 |
Something was not found.
#define U_ERROR_DISCONNECTED 7 |
Connection closed.
#define U_CALLBACK_CONTINUE 0 |
Callback exited with success, continue to next callback.
#define U_CALLBACK_IGNORE 1 |
Callback decided to be ignored, request.callback_position will not be incremented, continue to next callback.
#define U_CALLBACK_COMPLETE 2 |
Callback exited with success, exit callback list.
#define U_CALLBACK_UNAUTHORIZED 3 |
Request is unauthorized, exit callback list and return status 401.
#define U_CALLBACK_ERROR 4 |
Error during request process, exit callback list and return status 500.
#define U_COOKIE_SAME_SITE_EMPTY 0 |
Set same_site cookie property not set.
#define U_COOKIE_SAME_SITE_STRICT 1 |
Set same_site cookie property to strict.
#define U_COOKIE_SAME_SITE_LAX 2 |
Set same_site cookie property to lax.
#define U_COOKIE_SAME_SITE_NONE 3 |
Set same_site cookie property to none.
#define U_USE_IPV4 0x0001 |
Use instance in IPV4 mode only.
#define U_USE_IPV6 0x0010 |
Use instance in IPV6 mode only.
#define U_USE_ALL (U_USE_IPV4|U_USE_IPV6) |
Use instance in both IPV4 and IPV6 mode.
#define U_SSL_VERIFY_PEER 0x0001 |
Verify TLS session with peers.
#define U_SSL_VERIFY_HOSTNAME 0x0010 |
Verify TLS session with hostname.
#define U_POST_PROCESS_NONE 0x0000 |
#define U_POST_PROCESS_URL_ENCODED 0x0001 |
#define U_POST_PROCESS_MULTIPART_FORMDATA 0x0010 |
enum u_option |
Options available to set or get properties using ulfius_set_request_properties or ulfius_set_request_properties