diff options
Diffstat (limited to 'usr.sbin/httpd/http.h')
-rw-r--r-- | usr.sbin/httpd/http.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/usr.sbin/httpd/http.h b/usr.sbin/httpd/http.h index 76d98e3a142..46273b7a18b 100644 --- a/usr.sbin/httpd/http.h +++ b/usr.sbin/httpd/http.h @@ -1,4 +1,4 @@ -/* $OpenBSD: http.h,v 1.1 2014/07/12 23:34:54 reyk Exp $ */ +/* $OpenBSD: http.h,v 1.2 2014/07/13 14:17:37 reyk Exp $ */ /* * Copyright (c) 2012 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -119,6 +119,24 @@ struct http_error { { 0, NULL } \ } +struct http_mediatype { + char *media_name; + char *media_type; + char *media_subtype; +}; +/* Some default media types */ +#define MEDIA_TYPES { \ + { "css", "text", "css" }, \ + { "html", "text", "html" }, \ + { "txt", "text", "plain" }, \ + { "gif", "image", "gif" }, \ + { "jpeg", "image", "jpeg" }, \ + { "jpg", "image", "jpeg" }, \ + { "png", "image", "png" }, \ + { "js", "application", "javascript" }, \ + { NULL } \ +} + /* Used during runtime */ struct http_descriptor { struct kv http_pathquery; |