Lines Matching +full:- +full:- +full:user

1 /* Copyright (c) 2013-2018 the Civetweb developers
2 * Copyright (c) 2004-2013 Sergey Lyubka
97 /* Support on-the-fly compression. */
124 /* Un-initialize this library.
147 const char *request_uri; /* URL-decoded URI (absolute or relative,
149 const char *local_uri; /* URL-decoded URI (relative). Can be NULL
152 #if defined(MG_LEGACY_INTERFACE) /* 2017-02-04, deprecated 2014-09-14 */
158 const char *remote_user; /* Authenticated user, or NULL if no auth
163 can be -1 if no length was given. */
165 int is_ssl; /* 1 if SSL-ed, 0 if not */
166 void *user_data; /* User data pointer passed to mg_start() */
167 void *conn_data; /* Connection-specific user data */
188 can be -1 if no length was given. */
206 #if defined(MG_LEGACY_INTERFACE) /* 2017-10-05 */
231 1-999: callback already processed the request. Civetweb will
241 non-zero, civetweb does not log anything. */
245 non-zero, civetweb does not log anything. */
254 -1: initializing ssl fails. */
268 -1: initializing ssl fails.*/
271 #if defined(MG_LEGACY_INTERFACE) /* 2015-08-19 */
299 /* Called when civetweb is closing a connection. The per-context mutex is
305 application-maintained list of clients.
310 If memory has been allocated for the connection specific user data
311 (mg_request_info->conn_data, mg_get_user_connection_data),
323 #if defined(MG_LEGACY_INTERFACE) /* 2016-05-14 */
364 * This function returns a user supplied pointer. The pointer is assigned
386 * Can be used to initialize the connection specific user data
387 * (mg_request_info->conn_data, mg_get_user_connection_data).
393 * connection specific user data
405 callbacks: mg_callbacks structure with user-defined callbacks.
409 Side-effects: on UNIX, ignores SIGCHLD and SIGPIPE signals. If custom
450 * -1 for a parameter error
451 * -2 invalid options
452 * -3 initializing SSL failed
453 * -4 mandatory domain option missing
454 * -5 duplicate domain
455 * -6 out of memory
473 1 - 999: the handler processed the request. The return code is
552 This function works similar to mg_set_request_handler - see there. */
565 This function works similar to mg_set_request_handler - see there. */
595 This function works similar to mg_set_request_handler - see there. */
603 The value returned is read-only. Civetweb does not allow changing
606 names, return value is guaranteed to be non-NULL. If parameter is not
607 set, zero-length string is returned. */
617 /* Get user data passed to mg_start from context. */
621 /* Get user defined thread pointer for server threads (see init_thread). */
625 /* Set user data for the current connection. */
627 instead to initialize the user connection data pointer. It is
628 reccomended to supply a pointer to some user defined data structure
631 data pointer in the user defined data structure and modify that
638 /* Get user data set for the current connection. */
656 #if defined(MG_LEGACY_INTERFACE) /* 2014-02-21 */
673 #if defined(MG_LEGACY_INTERFACE) /* 2017-10-05 */
732 #if defined(MG_LEGACY_INTERFACE) /* 2017-04-02 */
744 * fly by adding, deleting and changing user records. This is one of the
746 * cookie-based way please refer to the examples/chat in the source tree.
751 * user: User name
761 const char *user,
787 -1 on error
798 This function is available when civetweb is compiled with -DUSE_WEBSOCKET
802 -1 on error
816 This function is available when civetweb is compiled with -DUSE_WEBSOCKET
820 -1 on error
831 websocket if your code has server-initiated communication as well as
837 #if defined(MG_LEGACY_INTERFACE) /* 2014-06-21 */
850 #if defined(MG_LEGACY_INTERFACE) /* 2017-10-05 */
871 /* Macros for enabling compiler-specific checks for printf-like arguments. */
900 * header with "Transfer-Encoding: chunked" set. */
941 * mime_type: Set Content-Type for the following content.
943 * Will set transfer-encoding to chunked, if set to -1.
953 * The response has content-size zero: do not send any body data after calling
960 * < 0 Error (-1 send error, -2 parameter error)
968 * Browsers will send a user name and password in their next request, showing
983 * A file is used to provide a list of valid user names, realms and
997 * -1 Parameter error
998 * -2 File not found
1010 * mime_type: Content-Type for file. NULL will cause the type to be
1022 mime_type: Content-Type for file. NULL will cause the type to be
1025 Each header should start with an X-, to ensure it is
1055 This is a helper function. It traverses request_info->http_headers array,
1065 data: pointer to form-uri-encoded buffer. This could be either POST data,
1075 -1 (variable not found).
1076 -2 (destination buffer is NULL, zero length or too small to hold the
1079 Destination buffer is guaranteed to be '\0' - terminated if it is not
1091 data: pointer to form-uri-encoded buffer. This could be either POST data,
1105 -1 (variable not found).
1106 -2 (destination buffer is NULL, zero length or too small to hold the
1109 Destination buffer is guaranteed to be '\0' - terminated if it is not
1121 Destination buffer is guaranteed to be '\0' - terminated. In case of
1128 -1 (either "Cookie:" header is not present at all or the requested
1130 -2 (destination buffer is NULL, zero length or too small to hold the
1167 #if defined(MG_LEGACY_INTERFACE) /* 2016-05-14 */
1241 /* User supplied argument, passed to all callback functions. */
1248 #if defined(MG_LEGACY_INTERFACE) /* 2017-10-05 */
1297 /* Convenience function -- create detached thread.
1298 Return: 0 on success, non-0 on error. */
1317 /* URL-decode input buffer into destination buffer.
1318 0-terminate the destination buffer.
1319 form-url-encoded data differs from URI encoding in a way that it
1322 Return: length of the decoded data, or -1 if dst buffer is too small. */
1330 /* URL-encode input buffer into destination buffer.
1331 returns the length of the resulting buffer or -1
1338 ASCIIz strings. When function returns, buf will contain human-readable
1374 user_data: user supplied argument
1428 enum { TIMEOUT_INFINITE = -1 };
1429 enum { MG_TIMEOUT_INFINITE = -1 };
1450 the library - it does not mean, the feature has been initialized using a