diff options
author | Loïc Hoguin <[email protected]> | 2012-01-23 09:36:59 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-01-23 09:36:59 +0100 |
commit | a297d5e42b76e4d1281a1d33b54c279d8b585772 (patch) | |
tree | 23873066f4fbe5f30c9aba98319c9797aafb5007 /include | |
parent | 8622dff906a1bdddf588e1fe006307488a824d3a (diff) | |
download | cowboy-a297d5e42b76e4d1281a1d33b54c279d8b585772.tar.gz cowboy-a297d5e42b76e4d1281a1d33b54c279d8b585772.tar.bz2 cowboy-a297d5e42b76e4d1281a1d33b54c279d8b585772.zip |
Rename the type http_header/0 to cowboy_http:header/0
At the same time rename http_headers/0 to cowboy_http:headers/0.
Diffstat (limited to 'include')
-rw-r--r-- | include/http.hrl | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/include/http.hrl b/include/http.hrl index e807937..40a5c6e 100644 --- a/include/http.hrl +++ b/include/http.hrl @@ -13,20 +13,6 @@ %% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --type http_header() :: 'Cache-Control' | 'Connection' | 'Date' | 'Pragma' - | 'Transfer-Encoding' | 'Upgrade' | 'Via' | 'Accept' | 'Accept-Charset' - | 'Accept-Encoding' | 'Accept-Language' | 'Authorization' | 'From' | 'Host' - | 'If-Modified-Since' | 'If-Match' | 'If-None-Match' | 'If-Range' - | 'If-Unmodified-Since' | 'Max-Forwards' | 'Proxy-Authorization' | 'Range' - | 'Referer' | 'User-Agent' | 'Age' | 'Location' | 'Proxy-Authenticate' - | 'Public' | 'Retry-After' | 'Server' | 'Vary' | 'Warning' - | 'Www-Authenticate' | 'Allow' | 'Content-Base' | 'Content-Encoding' - | 'Content-Language' | 'Content-Length' | 'Content-Location' - | 'Content-Md5' | 'Content-Range' | 'Content-Type' | 'Etag' - | 'Expires' | 'Last-Modified' | 'Accept-Ranges' | 'Set-Cookie' - | 'Set-Cookie2' | 'X-Forwarded-For' | 'Cookie' | 'Keep-Alive' - | 'Proxy-Connection' | binary(). --type http_headers() :: list({http_header(), iodata()}). -type http_cookies() :: list({binary(), binary()}). -type http_status() :: non_neg_integer() | binary(). -type http_resp_body() :: iodata() | {non_neg_integer(), @@ -53,7 +39,7 @@ qs_vals = undefined :: undefined | list({binary(), binary() | true}), raw_qs = undefined :: undefined | binary(), bindings = undefined :: undefined | cowboy_dispatcher:bindings(), - headers = [] :: http_headers(), + headers = [] :: cowboy_http:headers(), p_headers = [] :: [any()], %% @todo Improve those specs. cookies = undefined :: undefined | http_cookies(), meta = [] :: [{atom(), any()}], @@ -65,7 +51,7 @@ %% Response. resp_state = waiting :: locked | waiting | chunks | done, - resp_headers = [] :: http_headers(), + resp_headers = [] :: cowboy_http:headers(), resp_body = <<>> :: http_resp_body(), %% Functions. |