src/proto_http.c
static int acl_parse_meth(const char **text, struct acl_pattern *pattern, int *opaque, char **err)
{
	int len, meth;

	len  = strlen(*text);
	meth = find_http_meth(*text, len);

	pattern->val.i = meth;
	if (meth == HTTP_METH_OTHER) {
		pattern->ptr.str = strdup(*text);
		if (!pattern->ptr.str) {
			memprintf(err, "out of memory while loading pattern");
			return 0;
		}
		pattern->len = len;
	}
	return 1;
}
/* 1. Check on METHOD
 * We use the pre-parsed method if it is known, and store its number as an
 * integer. If it is unknown, we use the pointer and the length.
 */
1. Check on METHOD
We use the pre-parsed method if it is known, and store its number as an
integer. If it is unknown, we use the pointer and the length.
1 . Check on METHOD We use the pre - parsed method if it is known and store its number as an integer . If it is unknown we use the pointer and the length .
static int acl_parse_meth(const char **text, struct acl_pattern *pattern, int *opaque, char **err)
{
	int len, meth;
	len  = strlen(*text);
	meth = find_http_meth(*text, len);
	pattern->val.i = meth;
	if (meth == HTTP_METH_OTHER) {
		pattern->ptr.str = strdup(*text);
		if (!pattern->ptr.str) {
			memprintf(err, "out of memory while loading pattern");
			return 0;
		}
		pattern->len = len;
	}
	return 1;
}
static int acl_parse_meth ( const char * * text , struct acl_pattern * pattern , int * opaque , char * * err ) { int len , meth ; len = strlen ( * text ) ; meth = find_http_meth ( * text , len ) ; pattern -> val . i = meth ; if ( meth == HTTP_METH_OTHER ) { pattern -> ptr . str = strdup ( * text ) ; if ( ! pattern -> ptr . str ) { memprintf ( err , " " ) ; return 0 ; } pattern -> len = len ; } return 1 ; }
1.
1 .