Lines Matching defs:scheme
1692 const char *scheme;
1840 scheme = evhttp_uri_get_scheme(req->uri_elems);
1842 if (scheme && (!evutil_ascii_strcasecmp(scheme, "http") ||
1843 !evutil_ascii_strcasecmp(scheme, "https")) &&
4408 char *scheme; /* scheme; e.g http, ftp etc */
4433 * is a valid URI scheme according to RFC3986
4438 /* scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) */
4723 URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
4728 /* 1. scheme: */
4732 uri->scheme = mm_strdup(readp);
4733 if (uri->scheme == NULL) {
4786 /* If there was no scheme, the first part of the path (if any) must
4788 if (! uri->scheme && !path_matches_noscheme(path))
4832 URI_FREE_STR_(scheme);
4859 if (uri->scheme) {
4860 URI_ADD_(scheme);
4910 return uri->scheme;
4957 evhttp_uri_set_scheme(struct evhttp_uri *uri, const char *scheme)
4959 if (scheme && !scheme_ok(scheme, scheme+strlen(scheme)))
4962 URI_SET_STR_(scheme);