nginxtra 1.0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -0
- data/bin/nginxtra +5 -0
- data/lib/nginxtra.rb +12 -0
- data/lib/nginxtra/action.rb +36 -0
- data/lib/nginxtra/actions/compile.rb +60 -0
- data/lib/nginxtra/actions/install.rb +99 -0
- data/lib/nginxtra/actions/reload.rb +14 -0
- data/lib/nginxtra/actions/restart.rb +15 -0
- data/lib/nginxtra/actions/start.rb +53 -0
- data/lib/nginxtra/actions/status.rb +31 -0
- data/lib/nginxtra/actions/stop.rb +14 -0
- data/lib/nginxtra/cli.rb +77 -0
- data/lib/nginxtra/config.rb +339 -0
- data/lib/nginxtra/error.rb +13 -0
- data/lib/nginxtra/status.rb +57 -0
- data/src/nginx/CHANGES +5630 -0
- data/src/nginx/CHANGES.ru +5716 -0
- data/src/nginx/LICENSE +25 -0
- data/src/nginx/README +3 -0
- data/src/nginx/auto/cc/acc +15 -0
- data/src/nginx/auto/cc/bcc +72 -0
- data/src/nginx/auto/cc/ccc +46 -0
- data/src/nginx/auto/cc/conf +189 -0
- data/src/nginx/auto/cc/gcc +183 -0
- data/src/nginx/auto/cc/icc +121 -0
- data/src/nginx/auto/cc/msvc +138 -0
- data/src/nginx/auto/cc/name +101 -0
- data/src/nginx/auto/cc/owc +104 -0
- data/src/nginx/auto/cc/sunc +158 -0
- data/src/nginx/auto/define +12 -0
- data/src/nginx/auto/endianess +45 -0
- data/src/nginx/auto/feature +123 -0
- data/src/nginx/auto/have +12 -0
- data/src/nginx/auto/have_headers +12 -0
- data/src/nginx/auto/headers +13 -0
- data/src/nginx/auto/include +61 -0
- data/src/nginx/auto/init +51 -0
- data/src/nginx/auto/install +184 -0
- data/src/nginx/auto/lib/conf +83 -0
- data/src/nginx/auto/lib/geoip/conf +79 -0
- data/src/nginx/auto/lib/google-perftools/conf +45 -0
- data/src/nginx/auto/lib/libatomic/conf +43 -0
- data/src/nginx/auto/lib/libatomic/make +14 -0
- data/src/nginx/auto/lib/libgd/conf +83 -0
- data/src/nginx/auto/lib/libxslt/conf +156 -0
- data/src/nginx/auto/lib/make +32 -0
- data/src/nginx/auto/lib/md5/conf +103 -0
- data/src/nginx/auto/lib/md5/make +96 -0
- data/src/nginx/auto/lib/md5/makefile.bcc +22 -0
- data/src/nginx/auto/lib/md5/makefile.msvc +22 -0
- data/src/nginx/auto/lib/md5/makefile.owc +11 -0
- data/src/nginx/auto/lib/openssl/conf +74 -0
- data/src/nginx/auto/lib/openssl/make +67 -0
- data/src/nginx/auto/lib/openssl/makefile.bcc +18 -0
- data/src/nginx/auto/lib/openssl/makefile.msvc +14 -0
- data/src/nginx/auto/lib/pcre/conf +180 -0
- data/src/nginx/auto/lib/pcre/make +64 -0
- data/src/nginx/auto/lib/pcre/makefile.bcc +26 -0
- data/src/nginx/auto/lib/pcre/makefile.msvc +22 -0
- data/src/nginx/auto/lib/pcre/makefile.owc +24 -0
- data/src/nginx/auto/lib/perl/conf +60 -0
- data/src/nginx/auto/lib/perl/make +36 -0
- data/src/nginx/auto/lib/sha1/conf +79 -0
- data/src/nginx/auto/lib/sha1/make +96 -0
- data/src/nginx/auto/lib/sha1/makefile.bcc +22 -0
- data/src/nginx/auto/lib/sha1/makefile.msvc +22 -0
- data/src/nginx/auto/lib/sha1/makefile.owc +11 -0
- data/src/nginx/auto/lib/test +40 -0
- data/src/nginx/auto/lib/zlib/conf +76 -0
- data/src/nginx/auto/lib/zlib/make +114 -0
- data/src/nginx/auto/lib/zlib/makefile.bcc +15 -0
- data/src/nginx/auto/lib/zlib/makefile.msvc +14 -0
- data/src/nginx/auto/lib/zlib/makefile.owc +14 -0
- data/src/nginx/auto/lib/zlib/patch.zlib.h +10 -0
- data/src/nginx/auto/make +417 -0
- data/src/nginx/auto/modules +479 -0
- data/src/nginx/auto/nohave +12 -0
- data/src/nginx/auto/options +490 -0
- data/src/nginx/auto/os/conf +105 -0
- data/src/nginx/auto/os/darwin +116 -0
- data/src/nginx/auto/os/freebsd +136 -0
- data/src/nginx/auto/os/linux +152 -0
- data/src/nginx/auto/os/solaris +60 -0
- data/src/nginx/auto/os/win32 +29 -0
- data/src/nginx/auto/sources +518 -0
- data/src/nginx/auto/stubs +8 -0
- data/src/nginx/auto/summary +114 -0
- data/src/nginx/auto/types/sizeof +83 -0
- data/src/nginx/auto/types/typedef +77 -0
- data/src/nginx/auto/types/uintptr_t +42 -0
- data/src/nginx/auto/types/value +12 -0
- data/src/nginx/auto/unix +719 -0
- data/src/nginx/conf/fastcgi.conf +24 -0
- data/src/nginx/conf/fastcgi_params +23 -0
- data/src/nginx/conf/koi-utf +109 -0
- data/src/nginx/conf/koi-win +103 -0
- data/src/nginx/conf/mime.types +80 -0
- data/src/nginx/conf/nginx.conf +118 -0
- data/src/nginx/conf/scgi_params +15 -0
- data/src/nginx/conf/uwsgi_params +15 -0
- data/src/nginx/conf/win-utf +126 -0
- data/src/nginx/configure +108 -0
- data/src/nginx/contrib/README +15 -0
- data/src/nginx/contrib/geo2nginx.pl +58 -0
- data/src/nginx/contrib/unicode2nginx/koi-utf +131 -0
- data/src/nginx/contrib/unicode2nginx/unicode-to-nginx.pl +45 -0
- data/src/nginx/contrib/unicode2nginx/win-utf +130 -0
- data/src/nginx/html/50x.html +18 -0
- data/src/nginx/html/index.html +8 -0
- data/src/nginx/man/nginx.8 +202 -0
- data/src/nginx/src/core/nginx.c +1333 -0
- data/src/nginx/src/core/nginx.h +20 -0
- data/src/nginx/src/core/ngx_array.c +147 -0
- data/src/nginx/src/core/ngx_array.h +53 -0
- data/src/nginx/src/core/ngx_buf.c +218 -0
- data/src/nginx/src/core/ngx_buf.h +162 -0
- data/src/nginx/src/core/ngx_conf_file.c +1506 -0
- data/src/nginx/src/core/ngx_conf_file.h +348 -0
- data/src/nginx/src/core/ngx_config.h +134 -0
- data/src/nginx/src/core/ngx_connection.c +1074 -0
- data/src/nginx/src/core/ngx_connection.h +195 -0
- data/src/nginx/src/core/ngx_core.h +95 -0
- data/src/nginx/src/core/ngx_cpuinfo.c +139 -0
- data/src/nginx/src/core/ngx_crc.h +39 -0
- data/src/nginx/src/core/ngx_crc32.c +129 -0
- data/src/nginx/src/core/ngx_crc32.h +79 -0
- data/src/nginx/src/core/ngx_crypt.c +238 -0
- data/src/nginx/src/core/ngx_crypt.h +20 -0
- data/src/nginx/src/core/ngx_cycle.c +1379 -0
- data/src/nginx/src/core/ngx_cycle.h +142 -0
- data/src/nginx/src/core/ngx_file.c +993 -0
- data/src/nginx/src/core/ngx_file.h +151 -0
- data/src/nginx/src/core/ngx_hash.c +976 -0
- data/src/nginx/src/core/ngx_hash.h +122 -0
- data/src/nginx/src/core/ngx_inet.c +1008 -0
- data/src/nginx/src/core/ngx_inet.h +120 -0
- data/src/nginx/src/core/ngx_list.c +71 -0
- data/src/nginx/src/core/ngx_list.h +83 -0
- data/src/nginx/src/core/ngx_log.c +459 -0
- data/src/nginx/src/core/ngx_log.h +250 -0
- data/src/nginx/src/core/ngx_md5.c +289 -0
- data/src/nginx/src/core/ngx_md5.h +60 -0
- data/src/nginx/src/core/ngx_murmurhash.c +50 -0
- data/src/nginx/src/core/ngx_murmurhash.h +19 -0
- data/src/nginx/src/core/ngx_open_file_cache.c +882 -0
- data/src/nginx/src/core/ngx_open_file_cache.h +119 -0
- data/src/nginx/src/core/ngx_output_chain.c +673 -0
- data/src/nginx/src/core/ngx_palloc.c +433 -0
- data/src/nginx/src/core/ngx_palloc.h +95 -0
- data/src/nginx/src/core/ngx_parse.c +249 -0
- data/src/nginx/src/core/ngx_parse.h +24 -0
- data/src/nginx/src/core/ngx_queue.c +80 -0
- data/src/nginx/src/core/ngx_queue.h +112 -0
- data/src/nginx/src/core/ngx_radix_tree.c +291 -0
- data/src/nginx/src/core/ngx_radix_tree.h +46 -0
- data/src/nginx/src/core/ngx_rbtree.c +383 -0
- data/src/nginx/src/core/ngx_rbtree.h +84 -0
- data/src/nginx/src/core/ngx_regex.c +206 -0
- data/src/nginx/src/core/ngx_regex.h +56 -0
- data/src/nginx/src/core/ngx_resolver.c +2201 -0
- data/src/nginx/src/core/ngx_resolver.h +149 -0
- data/src/nginx/src/core/ngx_sha1.h +31 -0
- data/src/nginx/src/core/ngx_shmtx.c +284 -0
- data/src/nginx/src/core/ngx_shmtx.h +38 -0
- data/src/nginx/src/core/ngx_slab.c +701 -0
- data/src/nginx/src/core/ngx_slab.h +54 -0
- data/src/nginx/src/core/ngx_spinlock.c +53 -0
- data/src/nginx/src/core/ngx_string.c +1837 -0
- data/src/nginx/src/core/ngx_string.h +231 -0
- data/src/nginx/src/core/ngx_times.c +407 -0
- data/src/nginx/src/core/ngx_times.h +51 -0
- data/src/nginx/src/event/modules/ngx_aio_module.c +171 -0
- data/src/nginx/src/event/modules/ngx_devpoll_module.c +569 -0
- data/src/nginx/src/event/modules/ngx_epoll_module.c +833 -0
- data/src/nginx/src/event/modules/ngx_eventport_module.c +602 -0
- data/src/nginx/src/event/modules/ngx_kqueue_module.c +785 -0
- data/src/nginx/src/event/modules/ngx_poll_module.c +443 -0
- data/src/nginx/src/event/modules/ngx_rtsig_module.c +735 -0
- data/src/nginx/src/event/modules/ngx_select_module.c +435 -0
- data/src/nginx/src/event/modules/ngx_win32_select_module.c +400 -0
- data/src/nginx/src/event/ngx_event.c +1275 -0
- data/src/nginx/src/event/ngx_event.h +573 -0
- data/src/nginx/src/event/ngx_event_accept.c +428 -0
- data/src/nginx/src/event/ngx_event_busy_lock.c +286 -0
- data/src/nginx/src/event/ngx_event_busy_lock.h +65 -0
- data/src/nginx/src/event/ngx_event_connect.c +258 -0
- data/src/nginx/src/event/ngx_event_connect.h +76 -0
- data/src/nginx/src/event/ngx_event_mutex.c +70 -0
- data/src/nginx/src/event/ngx_event_openssl.c +2382 -0
- data/src/nginx/src/event/ngx_event_openssl.h +162 -0
- data/src/nginx/src/event/ngx_event_pipe.c +996 -0
- data/src/nginx/src/event/ngx_event_pipe.h +95 -0
- data/src/nginx/src/event/ngx_event_posted.c +173 -0
- data/src/nginx/src/event/ngx_event_posted.h +75 -0
- data/src/nginx/src/event/ngx_event_timer.c +159 -0
- data/src/nginx/src/event/ngx_event_timer.h +102 -0
- data/src/nginx/src/http/modules/ngx_http_access_module.c +384 -0
- data/src/nginx/src/http/modules/ngx_http_addition_filter_module.c +250 -0
- data/src/nginx/src/http/modules/ngx_http_auth_basic_module.c +478 -0
- data/src/nginx/src/http/modules/ngx_http_autoindex_module.c +701 -0
- data/src/nginx/src/http/modules/ngx_http_browser_module.c +713 -0
- data/src/nginx/src/http/modules/ngx_http_charset_filter_module.c +1681 -0
- data/src/nginx/src/http/modules/ngx_http_chunked_filter_module.c +242 -0
- data/src/nginx/src/http/modules/ngx_http_dav_module.c +1141 -0
- data/src/nginx/src/http/modules/ngx_http_degradation_module.c +243 -0
- data/src/nginx/src/http/modules/ngx_http_empty_gif_module.c +140 -0
- data/src/nginx/src/http/modules/ngx_http_fastcgi_module.c +2916 -0
- data/src/nginx/src/http/modules/ngx_http_flv_module.c +254 -0
- data/src/nginx/src/http/modules/ngx_http_geo_module.c +1441 -0
- data/src/nginx/src/http/modules/ngx_http_geoip_module.c +671 -0
- data/src/nginx/src/http/modules/ngx_http_gzip_filter_module.c +1206 -0
- data/src/nginx/src/http/modules/ngx_http_gzip_static_module.c +299 -0
- data/src/nginx/src/http/modules/ngx_http_headers_filter_module.c +616 -0
- data/src/nginx/src/http/modules/ngx_http_image_filter_module.c +1489 -0
- data/src/nginx/src/http/modules/ngx_http_index_module.c +516 -0
- data/src/nginx/src/http/modules/ngx_http_limit_req_module.c +809 -0
- data/src/nginx/src/http/modules/ngx_http_limit_zone_module.c +553 -0
- data/src/nginx/src/http/modules/ngx_http_log_module.c +1357 -0
- data/src/nginx/src/http/modules/ngx_http_map_module.c +575 -0
- data/src/nginx/src/http/modules/ngx_http_memcached_module.c +624 -0
- data/src/nginx/src/http/modules/ngx_http_mp4_module.c +3000 -0
- data/src/nginx/src/http/modules/ngx_http_not_modified_filter_module.c +143 -0
- data/src/nginx/src/http/modules/ngx_http_proxy_module.c +2831 -0
- data/src/nginx/src/http/modules/ngx_http_random_index_module.c +317 -0
- data/src/nginx/src/http/modules/ngx_http_range_filter_module.c +855 -0
- data/src/nginx/src/http/modules/ngx_http_realip_module.c +476 -0
- data/src/nginx/src/http/modules/ngx_http_referer_module.c +613 -0
- data/src/nginx/src/http/modules/ngx_http_rewrite_module.c +1019 -0
- data/src/nginx/src/http/modules/ngx_http_scgi_module.c +1714 -0
- data/src/nginx/src/http/modules/ngx_http_secure_link_module.c +355 -0
- data/src/nginx/src/http/modules/ngx_http_split_clients_module.c +242 -0
- data/src/nginx/src/http/modules/ngx_http_ssi_filter_module.c +2913 -0
- data/src/nginx/src/http/modules/ngx_http_ssi_filter_module.h +114 -0
- data/src/nginx/src/http/modules/ngx_http_ssl_module.c +652 -0
- data/src/nginx/src/http/modules/ngx_http_ssl_module.h +52 -0
- data/src/nginx/src/http/modules/ngx_http_static_module.c +278 -0
- data/src/nginx/src/http/modules/ngx_http_stub_status_module.c +144 -0
- data/src/nginx/src/http/modules/ngx_http_sub_filter_module.c +716 -0
- data/src/nginx/src/http/modules/ngx_http_upstream_ip_hash_module.c +237 -0
- data/src/nginx/src/http/modules/ngx_http_userid_filter_module.c +846 -0
- data/src/nginx/src/http/modules/ngx_http_uwsgi_module.c +1774 -0
- data/src/nginx/src/http/modules/ngx_http_xslt_filter_module.c +984 -0
- data/src/nginx/src/http/modules/perl/Makefile.PL +42 -0
- data/src/nginx/src/http/modules/perl/nginx.pm +137 -0
- data/src/nginx/src/http/modules/perl/nginx.xs +986 -0
- data/src/nginx/src/http/modules/perl/ngx_http_perl_module.c +1076 -0
- data/src/nginx/src/http/modules/perl/ngx_http_perl_module.h +67 -0
- data/src/nginx/src/http/modules/perl/typemap +3 -0
- data/src/nginx/src/http/ngx_http.c +2073 -0
- data/src/nginx/src/http/ngx_http.h +160 -0
- data/src/nginx/src/http/ngx_http_busy_lock.c +307 -0
- data/src/nginx/src/http/ngx_http_busy_lock.h +54 -0
- data/src/nginx/src/http/ngx_http_cache.h +148 -0
- data/src/nginx/src/http/ngx_http_config.h +75 -0
- data/src/nginx/src/http/ngx_http_copy_filter_module.c +300 -0
- data/src/nginx/src/http/ngx_http_core_module.c +4736 -0
- data/src/nginx/src/http/ngx_http_core_module.h +541 -0
- data/src/nginx/src/http/ngx_http_file_cache.c +1715 -0
- data/src/nginx/src/http/ngx_http_header_filter_module.c +623 -0
- data/src/nginx/src/http/ngx_http_parse.c +1734 -0
- data/src/nginx/src/http/ngx_http_parse_time.c +276 -0
- data/src/nginx/src/http/ngx_http_postpone_filter_module.c +178 -0
- data/src/nginx/src/http/ngx_http_request.c +3181 -0
- data/src/nginx/src/http/ngx_http_request.h +573 -0
- data/src/nginx/src/http/ngx_http_request_body.c +644 -0
- data/src/nginx/src/http/ngx_http_script.c +1752 -0
- data/src/nginx/src/http/ngx_http_script.h +257 -0
- data/src/nginx/src/http/ngx_http_special_response.c +789 -0
- data/src/nginx/src/http/ngx_http_upstream.c +4555 -0
- data/src/nginx/src/http/ngx_http_upstream.h +350 -0
- data/src/nginx/src/http/ngx_http_upstream_round_robin.c +791 -0
- data/src/nginx/src/http/ngx_http_upstream_round_robin.h +85 -0
- data/src/nginx/src/http/ngx_http_variables.c +2053 -0
- data/src/nginx/src/http/ngx_http_variables.h +115 -0
- data/src/nginx/src/http/ngx_http_write_filter_module.c +315 -0
- data/src/nginx/src/mail/ngx_mail.c +542 -0
- data/src/nginx/src/mail/ngx_mail.h +407 -0
- data/src/nginx/src/mail/ngx_mail_auth_http_module.c +1452 -0
- data/src/nginx/src/mail/ngx_mail_core_module.c +553 -0
- data/src/nginx/src/mail/ngx_mail_handler.c +773 -0
- data/src/nginx/src/mail/ngx_mail_imap_handler.c +457 -0
- data/src/nginx/src/mail/ngx_mail_imap_module.c +253 -0
- data/src/nginx/src/mail/ngx_mail_imap_module.h +39 -0
- data/src/nginx/src/mail/ngx_mail_parse.c +885 -0
- data/src/nginx/src/mail/ngx_mail_pop3_handler.c +500 -0
- data/src/nginx/src/mail/ngx_mail_pop3_module.c +264 -0
- data/src/nginx/src/mail/ngx_mail_pop3_module.h +38 -0
- data/src/nginx/src/mail/ngx_mail_proxy_module.c +1089 -0
- data/src/nginx/src/mail/ngx_mail_smtp_handler.c +872 -0
- data/src/nginx/src/mail/ngx_mail_smtp_module.c +308 -0
- data/src/nginx/src/mail/ngx_mail_smtp_module.h +45 -0
- data/src/nginx/src/mail/ngx_mail_ssl_module.c +491 -0
- data/src/nginx/src/mail/ngx_mail_ssl_module.h +52 -0
- data/src/nginx/src/misc/ngx_cpp_test_module.cpp +27 -0
- data/src/nginx/src/misc/ngx_google_perftools_module.c +126 -0
- data/src/nginx/src/os/unix/ngx_aio_read.c +109 -0
- data/src/nginx/src/os/unix/ngx_aio_read_chain.c +78 -0
- data/src/nginx/src/os/unix/ngx_aio_write.c +109 -0
- data/src/nginx/src/os/unix/ngx_aio_write_chain.c +100 -0
- data/src/nginx/src/os/unix/ngx_alloc.c +90 -0
- data/src/nginx/src/os/unix/ngx_alloc.h +45 -0
- data/src/nginx/src/os/unix/ngx_atomic.h +311 -0
- data/src/nginx/src/os/unix/ngx_channel.c +258 -0
- data/src/nginx/src/os/unix/ngx_channel.h +34 -0
- data/src/nginx/src/os/unix/ngx_daemon.c +69 -0
- data/src/nginx/src/os/unix/ngx_darwin.h +20 -0
- data/src/nginx/src/os/unix/ngx_darwin_config.h +96 -0
- data/src/nginx/src/os/unix/ngx_darwin_init.c +166 -0
- data/src/nginx/src/os/unix/ngx_darwin_sendfile_chain.c +366 -0
- data/src/nginx/src/os/unix/ngx_errno.c +87 -0
- data/src/nginx/src/os/unix/ngx_errno.h +68 -0
- data/src/nginx/src/os/unix/ngx_file_aio_read.c +208 -0
- data/src/nginx/src/os/unix/ngx_files.c +566 -0
- data/src/nginx/src/os/unix/ngx_files.h +343 -0
- data/src/nginx/src/os/unix/ngx_freebsd.h +24 -0
- data/src/nginx/src/os/unix/ngx_freebsd_config.h +119 -0
- data/src/nginx/src/os/unix/ngx_freebsd_init.c +259 -0
- data/src/nginx/src/os/unix/ngx_freebsd_rfork_thread.c +756 -0
- data/src/nginx/src/os/unix/ngx_freebsd_rfork_thread.h +122 -0
- data/src/nginx/src/os/unix/ngx_freebsd_sendfile_chain.c +436 -0
- data/src/nginx/src/os/unix/ngx_gcc_atomic_amd64.h +82 -0
- data/src/nginx/src/os/unix/ngx_gcc_atomic_ppc.h +155 -0
- data/src/nginx/src/os/unix/ngx_gcc_atomic_sparc64.h +82 -0
- data/src/nginx/src/os/unix/ngx_gcc_atomic_x86.h +127 -0
- data/src/nginx/src/os/unix/ngx_linux.h +18 -0
- data/src/nginx/src/os/unix/ngx_linux_aio_read.c +137 -0
- data/src/nginx/src/os/unix/ngx_linux_config.h +117 -0
- data/src/nginx/src/os/unix/ngx_linux_init.c +91 -0
- data/src/nginx/src/os/unix/ngx_linux_sendfile_chain.c +378 -0
- data/src/nginx/src/os/unix/ngx_os.h +84 -0
- data/src/nginx/src/os/unix/ngx_posix_config.h +153 -0
- data/src/nginx/src/os/unix/ngx_posix_init.c +124 -0
- data/src/nginx/src/os/unix/ngx_process.c +590 -0
- data/src/nginx/src/os/unix/ngx_process.h +87 -0
- data/src/nginx/src/os/unix/ngx_process_cycle.c +1390 -0
- data/src/nginx/src/os/unix/ngx_process_cycle.h +61 -0
- data/src/nginx/src/os/unix/ngx_pthread_thread.c +278 -0
- data/src/nginx/src/os/unix/ngx_readv_chain.c +258 -0
- data/src/nginx/src/os/unix/ngx_recv.c +180 -0
- data/src/nginx/src/os/unix/ngx_send.c +73 -0
- data/src/nginx/src/os/unix/ngx_setproctitle.c +135 -0
- data/src/nginx/src/os/unix/ngx_setproctitle.h +52 -0
- data/src/nginx/src/os/unix/ngx_shmem.c +126 -0
- data/src/nginx/src/os/unix/ngx_shmem.h +29 -0
- data/src/nginx/src/os/unix/ngx_socket.c +116 -0
- data/src/nginx/src/os/unix/ngx_socket.h +64 -0
- data/src/nginx/src/os/unix/ngx_solaris.h +16 -0
- data/src/nginx/src/os/unix/ngx_solaris_config.h +107 -0
- data/src/nginx/src/os/unix/ngx_solaris_init.c +75 -0
- data/src/nginx/src/os/unix/ngx_solaris_sendfilev_chain.c +251 -0
- data/src/nginx/src/os/unix/ngx_sunpro_amd64.il +43 -0
- data/src/nginx/src/os/unix/ngx_sunpro_atomic_sparc64.h +61 -0
- data/src/nginx/src/os/unix/ngx_sunpro_sparc64.il +36 -0
- data/src/nginx/src/os/unix/ngx_sunpro_x86.il +44 -0
- data/src/nginx/src/os/unix/ngx_thread.h +128 -0
- data/src/nginx/src/os/unix/ngx_time.c +104 -0
- data/src/nginx/src/os/unix/ngx_time.h +66 -0
- data/src/nginx/src/os/unix/ngx_udp_recv.c +115 -0
- data/src/nginx/src/os/unix/ngx_user.c +109 -0
- data/src/nginx/src/os/unix/ngx_user.h +24 -0
- data/src/nginx/src/os/unix/ngx_writev_chain.c +181 -0
- data/src/nginx/src/os/unix/rfork_thread.S +73 -0
- metadata +419 -0
@@ -0,0 +1,573 @@
|
|
1
|
+
|
2
|
+
/*
|
3
|
+
* Copyright (C) Igor Sysoev
|
4
|
+
* Copyright (C) Nginx, Inc.
|
5
|
+
*/
|
6
|
+
|
7
|
+
|
8
|
+
#ifndef _NGX_HTTP_REQUEST_H_INCLUDED_
|
9
|
+
#define _NGX_HTTP_REQUEST_H_INCLUDED_
|
10
|
+
|
11
|
+
|
12
|
+
#define NGX_HTTP_MAX_URI_CHANGES 10
|
13
|
+
#define NGX_HTTP_MAX_SUBREQUESTS 50
|
14
|
+
|
15
|
+
/* must be 2^n */
|
16
|
+
#define NGX_HTTP_LC_HEADER_LEN 32
|
17
|
+
|
18
|
+
|
19
|
+
#define NGX_HTTP_DISCARD_BUFFER_SIZE 4096
|
20
|
+
#define NGX_HTTP_LINGERING_BUFFER_SIZE 4096
|
21
|
+
|
22
|
+
|
23
|
+
#define NGX_HTTP_VERSION_9 9
|
24
|
+
#define NGX_HTTP_VERSION_10 1000
|
25
|
+
#define NGX_HTTP_VERSION_11 1001
|
26
|
+
|
27
|
+
#define NGX_HTTP_UNKNOWN 0x0001
|
28
|
+
#define NGX_HTTP_GET 0x0002
|
29
|
+
#define NGX_HTTP_HEAD 0x0004
|
30
|
+
#define NGX_HTTP_POST 0x0008
|
31
|
+
#define NGX_HTTP_PUT 0x0010
|
32
|
+
#define NGX_HTTP_DELETE 0x0020
|
33
|
+
#define NGX_HTTP_MKCOL 0x0040
|
34
|
+
#define NGX_HTTP_COPY 0x0080
|
35
|
+
#define NGX_HTTP_MOVE 0x0100
|
36
|
+
#define NGX_HTTP_OPTIONS 0x0200
|
37
|
+
#define NGX_HTTP_PROPFIND 0x0400
|
38
|
+
#define NGX_HTTP_PROPPATCH 0x0800
|
39
|
+
#define NGX_HTTP_LOCK 0x1000
|
40
|
+
#define NGX_HTTP_UNLOCK 0x2000
|
41
|
+
#define NGX_HTTP_PATCH 0x4000
|
42
|
+
#define NGX_HTTP_TRACE 0x8000
|
43
|
+
|
44
|
+
#define NGX_HTTP_CONNECTION_CLOSE 1
|
45
|
+
#define NGX_HTTP_CONNECTION_KEEP_ALIVE 2
|
46
|
+
|
47
|
+
|
48
|
+
#define NGX_NONE 1
|
49
|
+
|
50
|
+
|
51
|
+
#define NGX_HTTP_PARSE_HEADER_DONE 1
|
52
|
+
|
53
|
+
#define NGX_HTTP_CLIENT_ERROR 10
|
54
|
+
#define NGX_HTTP_PARSE_INVALID_METHOD 10
|
55
|
+
#define NGX_HTTP_PARSE_INVALID_REQUEST 11
|
56
|
+
#define NGX_HTTP_PARSE_INVALID_09_METHOD 12
|
57
|
+
|
58
|
+
#define NGX_HTTP_PARSE_INVALID_HEADER 13
|
59
|
+
|
60
|
+
|
61
|
+
/* unused 1 */
|
62
|
+
#define NGX_HTTP_SUBREQUEST_IN_MEMORY 2
|
63
|
+
#define NGX_HTTP_SUBREQUEST_WAITED 4
|
64
|
+
#define NGX_HTTP_LOG_UNSAFE 8
|
65
|
+
|
66
|
+
|
67
|
+
#define NGX_HTTP_OK 200
|
68
|
+
#define NGX_HTTP_CREATED 201
|
69
|
+
#define NGX_HTTP_ACCEPTED 202
|
70
|
+
#define NGX_HTTP_NO_CONTENT 204
|
71
|
+
#define NGX_HTTP_PARTIAL_CONTENT 206
|
72
|
+
|
73
|
+
#define NGX_HTTP_SPECIAL_RESPONSE 300
|
74
|
+
#define NGX_HTTP_MOVED_PERMANENTLY 301
|
75
|
+
#define NGX_HTTP_MOVED_TEMPORARILY 302
|
76
|
+
#define NGX_HTTP_SEE_OTHER 303
|
77
|
+
#define NGX_HTTP_NOT_MODIFIED 304
|
78
|
+
#define NGX_HTTP_TEMPORARY_REDIRECT 307
|
79
|
+
|
80
|
+
#define NGX_HTTP_BAD_REQUEST 400
|
81
|
+
#define NGX_HTTP_UNAUTHORIZED 401
|
82
|
+
#define NGX_HTTP_FORBIDDEN 403
|
83
|
+
#define NGX_HTTP_NOT_FOUND 404
|
84
|
+
#define NGX_HTTP_NOT_ALLOWED 405
|
85
|
+
#define NGX_HTTP_REQUEST_TIME_OUT 408
|
86
|
+
#define NGX_HTTP_CONFLICT 409
|
87
|
+
#define NGX_HTTP_LENGTH_REQUIRED 411
|
88
|
+
#define NGX_HTTP_PRECONDITION_FAILED 412
|
89
|
+
#define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE 413
|
90
|
+
#define NGX_HTTP_REQUEST_URI_TOO_LARGE 414
|
91
|
+
#define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE 415
|
92
|
+
#define NGX_HTTP_RANGE_NOT_SATISFIABLE 416
|
93
|
+
|
94
|
+
|
95
|
+
/* Our own HTTP codes */
|
96
|
+
|
97
|
+
/* The special code to close connection without any response */
|
98
|
+
#define NGX_HTTP_CLOSE 444
|
99
|
+
|
100
|
+
#define NGX_HTTP_NGINX_CODES 494
|
101
|
+
|
102
|
+
#define NGX_HTTP_REQUEST_HEADER_TOO_LARGE 494
|
103
|
+
|
104
|
+
#define NGX_HTTPS_CERT_ERROR 495
|
105
|
+
#define NGX_HTTPS_NO_CERT 496
|
106
|
+
|
107
|
+
/*
|
108
|
+
* We use the special code for the plain HTTP requests that are sent to
|
109
|
+
* HTTPS port to distinguish it from 4XX in an error page redirection
|
110
|
+
*/
|
111
|
+
#define NGX_HTTP_TO_HTTPS 497
|
112
|
+
|
113
|
+
/* 498 is the canceled code for the requests with invalid host name */
|
114
|
+
|
115
|
+
/*
|
116
|
+
* HTTP does not define the code for the case when a client closed
|
117
|
+
* the connection while we are processing its request so we introduce
|
118
|
+
* own code to log such situation when a client has closed the connection
|
119
|
+
* before we even try to send the HTTP header to it
|
120
|
+
*/
|
121
|
+
#define NGX_HTTP_CLIENT_CLOSED_REQUEST 499
|
122
|
+
|
123
|
+
|
124
|
+
#define NGX_HTTP_INTERNAL_SERVER_ERROR 500
|
125
|
+
#define NGX_HTTP_NOT_IMPLEMENTED 501
|
126
|
+
#define NGX_HTTP_BAD_GATEWAY 502
|
127
|
+
#define NGX_HTTP_SERVICE_UNAVAILABLE 503
|
128
|
+
#define NGX_HTTP_GATEWAY_TIME_OUT 504
|
129
|
+
#define NGX_HTTP_INSUFFICIENT_STORAGE 507
|
130
|
+
|
131
|
+
|
132
|
+
#define NGX_HTTP_LOWLEVEL_BUFFERED 0xf0
|
133
|
+
#define NGX_HTTP_WRITE_BUFFERED 0x10
|
134
|
+
#define NGX_HTTP_GZIP_BUFFERED 0x20
|
135
|
+
#define NGX_HTTP_SSI_BUFFERED 0x01
|
136
|
+
#define NGX_HTTP_SUB_BUFFERED 0x02
|
137
|
+
#define NGX_HTTP_COPY_BUFFERED 0x04
|
138
|
+
|
139
|
+
|
140
|
+
typedef enum {
|
141
|
+
NGX_HTTP_INITING_REQUEST_STATE = 0,
|
142
|
+
NGX_HTTP_READING_REQUEST_STATE,
|
143
|
+
NGX_HTTP_PROCESS_REQUEST_STATE,
|
144
|
+
|
145
|
+
NGX_HTTP_CONNECT_UPSTREAM_STATE,
|
146
|
+
NGX_HTTP_WRITING_UPSTREAM_STATE,
|
147
|
+
NGX_HTTP_READING_UPSTREAM_STATE,
|
148
|
+
|
149
|
+
NGX_HTTP_WRITING_REQUEST_STATE,
|
150
|
+
NGX_HTTP_LINGERING_CLOSE_STATE,
|
151
|
+
NGX_HTTP_KEEPALIVE_STATE
|
152
|
+
} ngx_http_state_e;
|
153
|
+
|
154
|
+
|
155
|
+
typedef struct {
|
156
|
+
ngx_str_t name;
|
157
|
+
ngx_uint_t offset;
|
158
|
+
ngx_http_header_handler_pt handler;
|
159
|
+
} ngx_http_header_t;
|
160
|
+
|
161
|
+
|
162
|
+
typedef struct {
|
163
|
+
ngx_str_t name;
|
164
|
+
ngx_uint_t offset;
|
165
|
+
} ngx_http_header_out_t;
|
166
|
+
|
167
|
+
|
168
|
+
typedef struct {
|
169
|
+
ngx_list_t headers;
|
170
|
+
|
171
|
+
ngx_table_elt_t *host;
|
172
|
+
ngx_table_elt_t *connection;
|
173
|
+
ngx_table_elt_t *if_modified_since;
|
174
|
+
ngx_table_elt_t *if_unmodified_since;
|
175
|
+
ngx_table_elt_t *user_agent;
|
176
|
+
ngx_table_elt_t *referer;
|
177
|
+
ngx_table_elt_t *content_length;
|
178
|
+
ngx_table_elt_t *content_type;
|
179
|
+
|
180
|
+
ngx_table_elt_t *range;
|
181
|
+
ngx_table_elt_t *if_range;
|
182
|
+
|
183
|
+
ngx_table_elt_t *transfer_encoding;
|
184
|
+
ngx_table_elt_t *expect;
|
185
|
+
|
186
|
+
#if (NGX_HTTP_GZIP)
|
187
|
+
ngx_table_elt_t *accept_encoding;
|
188
|
+
ngx_table_elt_t *via;
|
189
|
+
#endif
|
190
|
+
|
191
|
+
ngx_table_elt_t *authorization;
|
192
|
+
|
193
|
+
ngx_table_elt_t *keep_alive;
|
194
|
+
|
195
|
+
#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP || NGX_HTTP_GEO)
|
196
|
+
ngx_table_elt_t *x_forwarded_for;
|
197
|
+
#endif
|
198
|
+
|
199
|
+
#if (NGX_HTTP_REALIP)
|
200
|
+
ngx_table_elt_t *x_real_ip;
|
201
|
+
#endif
|
202
|
+
|
203
|
+
#if (NGX_HTTP_HEADERS)
|
204
|
+
ngx_table_elt_t *accept;
|
205
|
+
ngx_table_elt_t *accept_language;
|
206
|
+
#endif
|
207
|
+
|
208
|
+
#if (NGX_HTTP_DAV)
|
209
|
+
ngx_table_elt_t *depth;
|
210
|
+
ngx_table_elt_t *destination;
|
211
|
+
ngx_table_elt_t *overwrite;
|
212
|
+
ngx_table_elt_t *date;
|
213
|
+
#endif
|
214
|
+
|
215
|
+
ngx_str_t user;
|
216
|
+
ngx_str_t passwd;
|
217
|
+
|
218
|
+
ngx_array_t cookies;
|
219
|
+
|
220
|
+
ngx_str_t server;
|
221
|
+
off_t content_length_n;
|
222
|
+
time_t keep_alive_n;
|
223
|
+
|
224
|
+
unsigned connection_type:2;
|
225
|
+
unsigned msie:1;
|
226
|
+
unsigned msie6:1;
|
227
|
+
unsigned opera:1;
|
228
|
+
unsigned gecko:1;
|
229
|
+
unsigned chrome:1;
|
230
|
+
unsigned safari:1;
|
231
|
+
unsigned konqueror:1;
|
232
|
+
} ngx_http_headers_in_t;
|
233
|
+
|
234
|
+
|
235
|
+
typedef struct {
|
236
|
+
ngx_list_t headers;
|
237
|
+
|
238
|
+
ngx_uint_t status;
|
239
|
+
ngx_str_t status_line;
|
240
|
+
|
241
|
+
ngx_table_elt_t *server;
|
242
|
+
ngx_table_elt_t *date;
|
243
|
+
ngx_table_elt_t *content_length;
|
244
|
+
ngx_table_elt_t *content_encoding;
|
245
|
+
ngx_table_elt_t *location;
|
246
|
+
ngx_table_elt_t *refresh;
|
247
|
+
ngx_table_elt_t *last_modified;
|
248
|
+
ngx_table_elt_t *content_range;
|
249
|
+
ngx_table_elt_t *accept_ranges;
|
250
|
+
ngx_table_elt_t *www_authenticate;
|
251
|
+
ngx_table_elt_t *expires;
|
252
|
+
ngx_table_elt_t *etag;
|
253
|
+
|
254
|
+
ngx_str_t *override_charset;
|
255
|
+
|
256
|
+
size_t content_type_len;
|
257
|
+
ngx_str_t content_type;
|
258
|
+
ngx_str_t charset;
|
259
|
+
u_char *content_type_lowcase;
|
260
|
+
ngx_uint_t content_type_hash;
|
261
|
+
|
262
|
+
ngx_array_t cache_control;
|
263
|
+
|
264
|
+
off_t content_length_n;
|
265
|
+
time_t date_time;
|
266
|
+
time_t last_modified_time;
|
267
|
+
} ngx_http_headers_out_t;
|
268
|
+
|
269
|
+
|
270
|
+
typedef void (*ngx_http_client_body_handler_pt)(ngx_http_request_t *r);
|
271
|
+
|
272
|
+
typedef struct {
|
273
|
+
ngx_temp_file_t *temp_file;
|
274
|
+
ngx_chain_t *bufs;
|
275
|
+
ngx_buf_t *buf;
|
276
|
+
off_t rest;
|
277
|
+
ngx_chain_t *to_write;
|
278
|
+
ngx_http_client_body_handler_pt post_handler;
|
279
|
+
} ngx_http_request_body_t;
|
280
|
+
|
281
|
+
|
282
|
+
typedef struct {
|
283
|
+
ngx_http_request_t *request;
|
284
|
+
|
285
|
+
ngx_buf_t **busy;
|
286
|
+
ngx_int_t nbusy;
|
287
|
+
|
288
|
+
ngx_buf_t **free;
|
289
|
+
ngx_int_t nfree;
|
290
|
+
|
291
|
+
ngx_uint_t pipeline; /* unsigned pipeline:1; */
|
292
|
+
} ngx_http_connection_t;
|
293
|
+
|
294
|
+
|
295
|
+
typedef struct ngx_http_server_name_s ngx_http_server_name_t;
|
296
|
+
|
297
|
+
|
298
|
+
typedef struct {
|
299
|
+
ngx_hash_combined_t names;
|
300
|
+
|
301
|
+
ngx_uint_t nregex;
|
302
|
+
ngx_http_server_name_t *regex;
|
303
|
+
} ngx_http_virtual_names_t;
|
304
|
+
|
305
|
+
|
306
|
+
typedef void (*ngx_http_cleanup_pt)(void *data);
|
307
|
+
|
308
|
+
typedef struct ngx_http_cleanup_s ngx_http_cleanup_t;
|
309
|
+
|
310
|
+
struct ngx_http_cleanup_s {
|
311
|
+
ngx_http_cleanup_pt handler;
|
312
|
+
void *data;
|
313
|
+
ngx_http_cleanup_t *next;
|
314
|
+
};
|
315
|
+
|
316
|
+
|
317
|
+
typedef ngx_int_t (*ngx_http_post_subrequest_pt)(ngx_http_request_t *r,
|
318
|
+
void *data, ngx_int_t rc);
|
319
|
+
|
320
|
+
typedef struct {
|
321
|
+
ngx_http_post_subrequest_pt handler;
|
322
|
+
void *data;
|
323
|
+
} ngx_http_post_subrequest_t;
|
324
|
+
|
325
|
+
|
326
|
+
typedef struct ngx_http_postponed_request_s ngx_http_postponed_request_t;
|
327
|
+
|
328
|
+
struct ngx_http_postponed_request_s {
|
329
|
+
ngx_http_request_t *request;
|
330
|
+
ngx_chain_t *out;
|
331
|
+
ngx_http_postponed_request_t *next;
|
332
|
+
};
|
333
|
+
|
334
|
+
|
335
|
+
typedef struct ngx_http_posted_request_s ngx_http_posted_request_t;
|
336
|
+
|
337
|
+
struct ngx_http_posted_request_s {
|
338
|
+
ngx_http_request_t *request;
|
339
|
+
ngx_http_posted_request_t *next;
|
340
|
+
};
|
341
|
+
|
342
|
+
|
343
|
+
typedef ngx_int_t (*ngx_http_handler_pt)(ngx_http_request_t *r);
|
344
|
+
typedef void (*ngx_http_event_handler_pt)(ngx_http_request_t *r);
|
345
|
+
|
346
|
+
|
347
|
+
struct ngx_http_request_s {
|
348
|
+
uint32_t signature; /* "HTTP" */
|
349
|
+
|
350
|
+
ngx_connection_t *connection;
|
351
|
+
|
352
|
+
void **ctx;
|
353
|
+
void **main_conf;
|
354
|
+
void **srv_conf;
|
355
|
+
void **loc_conf;
|
356
|
+
|
357
|
+
ngx_http_event_handler_pt read_event_handler;
|
358
|
+
ngx_http_event_handler_pt write_event_handler;
|
359
|
+
|
360
|
+
#if (NGX_HTTP_CACHE)
|
361
|
+
ngx_http_cache_t *cache;
|
362
|
+
#endif
|
363
|
+
|
364
|
+
ngx_http_upstream_t *upstream;
|
365
|
+
ngx_array_t *upstream_states;
|
366
|
+
/* of ngx_http_upstream_state_t */
|
367
|
+
|
368
|
+
ngx_pool_t *pool;
|
369
|
+
ngx_buf_t *header_in;
|
370
|
+
|
371
|
+
ngx_http_headers_in_t headers_in;
|
372
|
+
ngx_http_headers_out_t headers_out;
|
373
|
+
|
374
|
+
ngx_http_request_body_t *request_body;
|
375
|
+
|
376
|
+
time_t lingering_time;
|
377
|
+
time_t start_sec;
|
378
|
+
ngx_msec_t start_msec;
|
379
|
+
|
380
|
+
ngx_uint_t method;
|
381
|
+
ngx_uint_t http_version;
|
382
|
+
|
383
|
+
ngx_str_t request_line;
|
384
|
+
ngx_str_t uri;
|
385
|
+
ngx_str_t args;
|
386
|
+
ngx_str_t exten;
|
387
|
+
ngx_str_t unparsed_uri;
|
388
|
+
|
389
|
+
ngx_str_t method_name;
|
390
|
+
ngx_str_t http_protocol;
|
391
|
+
|
392
|
+
ngx_chain_t *out;
|
393
|
+
ngx_http_request_t *main;
|
394
|
+
ngx_http_request_t *parent;
|
395
|
+
ngx_http_postponed_request_t *postponed;
|
396
|
+
ngx_http_post_subrequest_t *post_subrequest;
|
397
|
+
ngx_http_posted_request_t *posted_requests;
|
398
|
+
|
399
|
+
ngx_http_virtual_names_t *virtual_names;
|
400
|
+
|
401
|
+
ngx_int_t phase_handler;
|
402
|
+
ngx_http_handler_pt content_handler;
|
403
|
+
ngx_uint_t access_code;
|
404
|
+
|
405
|
+
ngx_http_variable_value_t *variables;
|
406
|
+
|
407
|
+
#if (NGX_PCRE)
|
408
|
+
ngx_uint_t ncaptures;
|
409
|
+
int *captures;
|
410
|
+
u_char *captures_data;
|
411
|
+
#endif
|
412
|
+
|
413
|
+
size_t limit_rate;
|
414
|
+
|
415
|
+
/* used to learn the Apache compatible response length without a header */
|
416
|
+
size_t header_size;
|
417
|
+
|
418
|
+
off_t request_length;
|
419
|
+
|
420
|
+
ngx_uint_t err_status;
|
421
|
+
|
422
|
+
ngx_http_connection_t *http_connection;
|
423
|
+
|
424
|
+
ngx_http_log_handler_pt log_handler;
|
425
|
+
|
426
|
+
ngx_http_cleanup_t *cleanup;
|
427
|
+
|
428
|
+
unsigned subrequests:8;
|
429
|
+
unsigned count:8;
|
430
|
+
unsigned blocked:8;
|
431
|
+
|
432
|
+
unsigned aio:1;
|
433
|
+
|
434
|
+
unsigned http_state:4;
|
435
|
+
|
436
|
+
/* URI with "/." and on Win32 with "//" */
|
437
|
+
unsigned complex_uri:1;
|
438
|
+
|
439
|
+
/* URI with "%" */
|
440
|
+
unsigned quoted_uri:1;
|
441
|
+
|
442
|
+
/* URI with "+" */
|
443
|
+
unsigned plus_in_uri:1;
|
444
|
+
|
445
|
+
/* URI with " " */
|
446
|
+
unsigned space_in_uri:1;
|
447
|
+
|
448
|
+
unsigned invalid_header:1;
|
449
|
+
|
450
|
+
unsigned add_uri_to_alias:1;
|
451
|
+
unsigned valid_location:1;
|
452
|
+
unsigned valid_unparsed_uri:1;
|
453
|
+
unsigned uri_changed:1;
|
454
|
+
unsigned uri_changes:4;
|
455
|
+
|
456
|
+
unsigned request_body_in_single_buf:1;
|
457
|
+
unsigned request_body_in_file_only:1;
|
458
|
+
unsigned request_body_in_persistent_file:1;
|
459
|
+
unsigned request_body_in_clean_file:1;
|
460
|
+
unsigned request_body_file_group_access:1;
|
461
|
+
unsigned request_body_file_log_level:3;
|
462
|
+
|
463
|
+
unsigned subrequest_in_memory:1;
|
464
|
+
unsigned waited:1;
|
465
|
+
|
466
|
+
#if (NGX_HTTP_CACHE)
|
467
|
+
unsigned cached:1;
|
468
|
+
#endif
|
469
|
+
|
470
|
+
#if (NGX_HTTP_GZIP)
|
471
|
+
unsigned gzip_tested:1;
|
472
|
+
unsigned gzip_ok:1;
|
473
|
+
unsigned gzip_vary:1;
|
474
|
+
#endif
|
475
|
+
|
476
|
+
unsigned proxy:1;
|
477
|
+
unsigned bypass_cache:1;
|
478
|
+
unsigned no_cache:1;
|
479
|
+
|
480
|
+
/*
|
481
|
+
* instead of using the request context data in
|
482
|
+
* ngx_http_limit_zone_module and ngx_http_limit_req_module
|
483
|
+
* we use the single bits in the request structure
|
484
|
+
*/
|
485
|
+
unsigned limit_zone_set:1;
|
486
|
+
unsigned limit_req_set:1;
|
487
|
+
|
488
|
+
#if 0
|
489
|
+
unsigned cacheable:1;
|
490
|
+
#endif
|
491
|
+
|
492
|
+
unsigned pipeline:1;
|
493
|
+
unsigned plain_http:1;
|
494
|
+
unsigned chunked:1;
|
495
|
+
unsigned header_only:1;
|
496
|
+
unsigned keepalive:1;
|
497
|
+
unsigned lingering_close:1;
|
498
|
+
unsigned discard_body:1;
|
499
|
+
unsigned internal:1;
|
500
|
+
unsigned error_page:1;
|
501
|
+
unsigned ignore_content_encoding:1;
|
502
|
+
unsigned filter_finalize:1;
|
503
|
+
unsigned post_action:1;
|
504
|
+
unsigned request_complete:1;
|
505
|
+
unsigned request_output:1;
|
506
|
+
unsigned header_sent:1;
|
507
|
+
unsigned expect_tested:1;
|
508
|
+
unsigned root_tested:1;
|
509
|
+
unsigned done:1;
|
510
|
+
unsigned logged:1;
|
511
|
+
|
512
|
+
unsigned buffered:4;
|
513
|
+
|
514
|
+
unsigned main_filter_need_in_memory:1;
|
515
|
+
unsigned filter_need_in_memory:1;
|
516
|
+
unsigned filter_need_temporary:1;
|
517
|
+
unsigned allow_ranges:1;
|
518
|
+
|
519
|
+
#if (NGX_STAT_STUB)
|
520
|
+
unsigned stat_reading:1;
|
521
|
+
unsigned stat_writing:1;
|
522
|
+
#endif
|
523
|
+
|
524
|
+
/* used to parse HTTP headers */
|
525
|
+
|
526
|
+
ngx_uint_t state;
|
527
|
+
|
528
|
+
ngx_uint_t header_hash;
|
529
|
+
ngx_uint_t lowcase_index;
|
530
|
+
u_char lowcase_header[NGX_HTTP_LC_HEADER_LEN];
|
531
|
+
|
532
|
+
u_char *header_name_start;
|
533
|
+
u_char *header_name_end;
|
534
|
+
u_char *header_start;
|
535
|
+
u_char *header_end;
|
536
|
+
|
537
|
+
/*
|
538
|
+
* a memory that can be reused after parsing a request line
|
539
|
+
* via ngx_http_ephemeral_t
|
540
|
+
*/
|
541
|
+
|
542
|
+
u_char *uri_start;
|
543
|
+
u_char *uri_end;
|
544
|
+
u_char *uri_ext;
|
545
|
+
u_char *args_start;
|
546
|
+
u_char *request_start;
|
547
|
+
u_char *request_end;
|
548
|
+
u_char *method_end;
|
549
|
+
u_char *schema_start;
|
550
|
+
u_char *schema_end;
|
551
|
+
u_char *host_start;
|
552
|
+
u_char *host_end;
|
553
|
+
u_char *port_start;
|
554
|
+
u_char *port_end;
|
555
|
+
|
556
|
+
unsigned http_minor:16;
|
557
|
+
unsigned http_major:16;
|
558
|
+
};
|
559
|
+
|
560
|
+
|
561
|
+
typedef struct {
|
562
|
+
ngx_http_posted_request_t terminal_posted_request;
|
563
|
+
#if (NGX_HAVE_AIO_SENDFILE)
|
564
|
+
u_char aio_preload;
|
565
|
+
#endif
|
566
|
+
} ngx_http_ephemeral_t;
|
567
|
+
|
568
|
+
|
569
|
+
extern ngx_http_header_t ngx_http_headers_in[];
|
570
|
+
extern ngx_http_header_out_t ngx_http_headers_out[];
|
571
|
+
|
572
|
+
|
573
|
+
#endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */
|