nginx/src/http/ngx_http_parse.c


/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>


static uint32_t  usual[] =;


#if (NGX_HAVE_LITTLE_ENDIAN && NGX_HAVE_NONALIGNED)

#define ngx_str3_cmp(m, c0, c1, c2, c3)

#define ngx_str3Ocmp(m, c0, c1, c2, c3)

#define ngx_str4cmp(m, c0, c1, c2, c3)

#define ngx_str5cmp(m, c0, c1, c2, c3, c4)

#define ngx_str6cmp(m, c0, c1, c2, c3, c4, c5)

#define ngx_str7_cmp(m, c0, c1, c2, c3, c4, c5, c6, c7)

#define ngx_str8cmp(m, c0, c1, c2, c3, c4, c5, c6, c7)

#define ngx_str9cmp(m, c0, c1, c2, c3, c4, c5, c6, c7, c8)

#else /* !(NGX_HAVE_LITTLE_ENDIAN && NGX_HAVE_NONALIGNED) */

#define ngx_str3_cmp

#define ngx_str3Ocmp

#define ngx_str4cmp

#define ngx_str5cmp

#define ngx_str6cmp

#define ngx_str7_cmp

#define ngx_str8cmp

#define ngx_str9cmp

#endif


/* gcc, icc, msvc and others compile these switches as an jump table */

ngx_int_t
ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
{}


ngx_int_t
ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
    ngx_uint_t allow_underscores)
{}


ngx_int_t
ngx_http_parse_uri(ngx_http_request_t *r)
{}


ngx_int_t
ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
{}


ngx_int_t
ngx_http_parse_status_line(ngx_http_request_t *r, ngx_buf_t *b,
    ngx_http_status_t *status)
{}


ngx_int_t
ngx_http_parse_unsafe_uri(ngx_http_request_t *r, ngx_str_t *uri,
    ngx_str_t *args, ngx_uint_t *flags)
{}


ngx_table_elt_t *
ngx_http_parse_multi_header_lines(ngx_http_request_t *r,
    ngx_table_elt_t *headers, ngx_str_t *name, ngx_str_t *value)
{}


ngx_table_elt_t *
ngx_http_parse_set_cookie_lines(ngx_http_request_t *r,
    ngx_table_elt_t *headers, ngx_str_t *name, ngx_str_t *value)
{}


ngx_int_t
ngx_http_arg(ngx_http_request_t *r, u_char *name, size_t len, ngx_str_t *value)
{}


void
ngx_http_split_args(ngx_http_request_t *r, ngx_str_t *uri, ngx_str_t *args)
{}


ngx_int_t
ngx_http_parse_chunked(ngx_http_request_t *r, ngx_buf_t *b,
    ngx_http_chunked_t *ctx)
{}