History log of /openbsd-current/usr.sbin/httpd/http.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.17 24-Mar-2024 job

Sync with IANA Status Code Registry

From https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

OK sthen@ miod@


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.16 12-Sep-2020 yasuoka

Use the original requested URI for REQUEST_URI.

ok millert florian


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.15 08-May-2019 tb

Set the REQUEST_URI CGI variable to the requested URI and query string
instead of the rewritten path and query string.

Patch from Tim Baumgard, reminded by Mischa Peters.

ok benno, reyk


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.14 01-Aug-2016 benno

sync http.h with relayd
ok reyk@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.13 11-Jun-2015 reyk

Use "compliant" header guards by avoiding the reserved '_' namespace.

Pointed out by Markus Elfring

OK mikeb@ millert@


Revision tags: OPENBSD_5_7_BASE
# 1.12 11-Feb-2015 florian

More http status codes.
OK benno@, reyk@


# 1.11 13-Jan-2015 reyk

bump copyright year


# 1.10 07-Jan-2015 reyk

SVG is common enough to add it to the default types.


# 1.9 29-Sep-2014 deraadt

whitespace spotted while studying the code


# 1.8 05-Sep-2014 reyk

Add various RFC-based WebDAV methods to the list of accepted HTTP methods.
This fixes (Fast)CGI-based WebDAV and CalDAV (calendar) servers with httpd.

ok benno@ stsp@


# 1.7 14-Aug-2014 doug

Sync with RFC 7230-7235 phrases and IANA registered status codes.

ok reyk@


# 1.6 08-Aug-2014 reyk

When opening directories, re-match the location after the index file
has been appended. This allows to use a fastcgi target as the default
index, for example index.php.

OK florian@


Revision tags: OPENBSD_5_6_BASE
# 1.5 03-Aug-2014 reyk

branches: 1.5.2;
Allocate http_host instead of carrying a buffer in the descriptor.


# 1.4 25-Jul-2014 reyk

It is recommended to use a URL in the Location header of 3xx
responses. To accomplish this, add some semantics to retrieve the
server host name of a connection: either IP, IP:PORT (if not 80) or
[IP6]:PORT, or Host value (if valid).


# 1.3 13-Jul-2014 reyk

Sync file to be identical in relayd(8) and httpd(8).


# 1.2 13-Jul-2014 reyk

Add support for media types (aka. MIME types): the types section is
compatible to nginx' mime.types file which can be included directly.
If not present, use a few built-in defaults for html, css, txt, jpeg,
gif, png, and js.


# 1.1 12-Jul-2014 reyk

Add httpd(8), an attempt to turn the relayd(8) codebase into a simple
web server. It is not finished yet and I just started it today, but
the goal is to provide an HTTP server that a) provides minimal
features, b) serves static files, c) provides FastCGI support, and d)
follows common coding practices of OpenBSD.

It will neither support plugins, nor custom memory allocators, EBCDIC
support, PCRE or any other things that can be found elsewhere.
httpd(8) is not intended to provide a fully-featured replacement for
nginx(8) or the Apache, but it will provide enough functionality that
is needed in the OpenBSD base system.

ok deraadt@


# 1.16 12-Sep-2020 yasuoka

Use the original requested URI for REQUEST_URI.

ok millert florian


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.15 08-May-2019 tb

Set the REQUEST_URI CGI variable to the requested URI and query string
instead of the rewritten path and query string.

Patch from Tim Baumgard, reminded by Mischa Peters.

ok benno, reyk


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.14 01-Aug-2016 benno

sync http.h with relayd
ok reyk@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.13 11-Jun-2015 reyk

Use "compliant" header guards by avoiding the reserved '_' namespace.

Pointed out by Markus Elfring

OK mikeb@ millert@


Revision tags: OPENBSD_5_7_BASE
# 1.12 11-Feb-2015 florian

More http status codes.
OK benno@, reyk@


# 1.11 13-Jan-2015 reyk

bump copyright year


# 1.10 07-Jan-2015 reyk

SVG is common enough to add it to the default types.


# 1.9 29-Sep-2014 deraadt

whitespace spotted while studying the code


# 1.8 05-Sep-2014 reyk

Add various RFC-based WebDAV methods to the list of accepted HTTP methods.
This fixes (Fast)CGI-based WebDAV and CalDAV (calendar) servers with httpd.

ok benno@ stsp@


# 1.7 14-Aug-2014 doug

Sync with RFC 7230-7235 phrases and IANA registered status codes.

ok reyk@


# 1.6 08-Aug-2014 reyk

When opening directories, re-match the location after the index file
has been appended. This allows to use a fastcgi target as the default
index, for example index.php.

OK florian@


Revision tags: OPENBSD_5_6_BASE
# 1.5 03-Aug-2014 reyk

branches: 1.5.2;
Allocate http_host instead of carrying a buffer in the descriptor.


# 1.4 25-Jul-2014 reyk

It is recommended to use a URL in the Location header of 3xx
responses. To accomplish this, add some semantics to retrieve the
server host name of a connection: either IP, IP:PORT (if not 80) or
[IP6]:PORT, or Host value (if valid).


# 1.3 13-Jul-2014 reyk

Sync file to be identical in relayd(8) and httpd(8).


# 1.2 13-Jul-2014 reyk

Add support for media types (aka. MIME types): the types section is
compatible to nginx' mime.types file which can be included directly.
If not present, use a few built-in defaults for html, css, txt, jpeg,
gif, png, and js.


# 1.1 12-Jul-2014 reyk

Add httpd(8), an attempt to turn the relayd(8) codebase into a simple
web server. It is not finished yet and I just started it today, but
the goal is to provide an HTTP server that a) provides minimal
features, b) serves static files, c) provides FastCGI support, and d)
follows common coding practices of OpenBSD.

It will neither support plugins, nor custom memory allocators, EBCDIC
support, PCRE or any other things that can be found elsewhere.
httpd(8) is not intended to provide a fully-featured replacement for
nginx(8) or the Apache, but it will provide enough functionality that
is needed in the OpenBSD base system.

ok deraadt@


# 1.15 08-May-2019 tb

Set the REQUEST_URI CGI variable to the requested URI and query string
instead of the rewritten path and query string.

Patch from Tim Baumgard, reminded by Mischa Peters.

ok benno, reyk


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.14 01-Aug-2016 benno

sync http.h with relayd
ok reyk@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.13 11-Jun-2015 reyk

Use "compliant" header guards by avoiding the reserved '_' namespace.

Pointed out by Markus Elfring

OK mikeb@ millert@


Revision tags: OPENBSD_5_7_BASE
# 1.12 11-Feb-2015 florian

More http status codes.
OK benno@, reyk@


# 1.11 13-Jan-2015 reyk

bump copyright year


# 1.10 07-Jan-2015 reyk

SVG is common enough to add it to the default types.


# 1.9 29-Sep-2014 deraadt

whitespace spotted while studying the code


# 1.8 05-Sep-2014 reyk

Add various RFC-based WebDAV methods to the list of accepted HTTP methods.
This fixes (Fast)CGI-based WebDAV and CalDAV (calendar) servers with httpd.

ok benno@ stsp@


# 1.7 14-Aug-2014 doug

Sync with RFC 7230-7235 phrases and IANA registered status codes.

ok reyk@


# 1.6 08-Aug-2014 reyk

When opening directories, re-match the location after the index file
has been appended. This allows to use a fastcgi target as the default
index, for example index.php.

OK florian@


Revision tags: OPENBSD_5_6_BASE
# 1.5 03-Aug-2014 reyk

branches: 1.5.2;
Allocate http_host instead of carrying a buffer in the descriptor.


# 1.4 25-Jul-2014 reyk

It is recommended to use a URL in the Location header of 3xx
responses. To accomplish this, add some semantics to retrieve the
server host name of a connection: either IP, IP:PORT (if not 80) or
[IP6]:PORT, or Host value (if valid).


# 1.3 13-Jul-2014 reyk

Sync file to be identical in relayd(8) and httpd(8).


# 1.2 13-Jul-2014 reyk

Add support for media types (aka. MIME types): the types section is
compatible to nginx' mime.types file which can be included directly.
If not present, use a few built-in defaults for html, css, txt, jpeg,
gif, png, and js.


# 1.1 12-Jul-2014 reyk

Add httpd(8), an attempt to turn the relayd(8) codebase into a simple
web server. It is not finished yet and I just started it today, but
the goal is to provide an HTTP server that a) provides minimal
features, b) serves static files, c) provides FastCGI support, and d)
follows common coding practices of OpenBSD.

It will neither support plugins, nor custom memory allocators, EBCDIC
support, PCRE or any other things that can be found elsewhere.
httpd(8) is not intended to provide a fully-featured replacement for
nginx(8) or the Apache, but it will provide enough functionality that
is needed in the OpenBSD base system.

ok deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.14 01-Aug-2016 benno

sync http.h with relayd
ok reyk@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.13 11-Jun-2015 reyk

Use "compliant" header guards by avoiding the reserved '_' namespace.

Pointed out by Markus Elfring

OK mikeb@ millert@


Revision tags: OPENBSD_5_7_BASE
# 1.12 11-Feb-2015 florian

More http status codes.
OK benno@, reyk@


# 1.11 13-Jan-2015 reyk

bump copyright year


# 1.10 07-Jan-2015 reyk

SVG is common enough to add it to the default types.


# 1.9 29-Sep-2014 deraadt

whitespace spotted while studying the code


# 1.8 05-Sep-2014 reyk

Add various RFC-based WebDAV methods to the list of accepted HTTP methods.
This fixes (Fast)CGI-based WebDAV and CalDAV (calendar) servers with httpd.

ok benno@ stsp@


# 1.7 14-Aug-2014 doug

Sync with RFC 7230-7235 phrases and IANA registered status codes.

ok reyk@


# 1.6 08-Aug-2014 reyk

When opening directories, re-match the location after the index file
has been appended. This allows to use a fastcgi target as the default
index, for example index.php.

OK florian@


Revision tags: OPENBSD_5_6_BASE
# 1.5 03-Aug-2014 reyk

branches: 1.5.2;
Allocate http_host instead of carrying a buffer in the descriptor.


# 1.4 25-Jul-2014 reyk

It is recommended to use a URL in the Location header of 3xx
responses. To accomplish this, add some semantics to retrieve the
server host name of a connection: either IP, IP:PORT (if not 80) or
[IP6]:PORT, or Host value (if valid).


# 1.3 13-Jul-2014 reyk

Sync file to be identical in relayd(8) and httpd(8).


# 1.2 13-Jul-2014 reyk

Add support for media types (aka. MIME types): the types section is
compatible to nginx' mime.types file which can be included directly.
If not present, use a few built-in defaults for html, css, txt, jpeg,
gif, png, and js.


# 1.1 12-Jul-2014 reyk

Add httpd(8), an attempt to turn the relayd(8) codebase into a simple
web server. It is not finished yet and I just started it today, but
the goal is to provide an HTTP server that a) provides minimal
features, b) serves static files, c) provides FastCGI support, and d)
follows common coding practices of OpenBSD.

It will neither support plugins, nor custom memory allocators, EBCDIC
support, PCRE or any other things that can be found elsewhere.
httpd(8) is not intended to provide a fully-featured replacement for
nginx(8) or the Apache, but it will provide enough functionality that
is needed in the OpenBSD base system.

ok deraadt@