0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00

Rename cowboy_http_rest to cowboy_rest

This commit is contained in:
Loïc Hoguin 2012-08-27 13:39:59 +02:00
parent d3dcaf109b
commit 6d84afd16d
7 changed files with 9 additions and 9 deletions

View file

@ -62,7 +62,7 @@
%% `application/octet-stream'. This can be overriden by supplying a list
%% of filename extension to mimetypes pairs in the `mimetypes' option.
%% The filename extension should be a binary string including the leading dot.
%% The mimetypes must be of a type that the `cowboy_http_rest' protocol can
%% The mimetypes must be of a type that the `cowboy_rest' protocol can
%% handle.
%%
%% The <a href="https://github.com/spawngrid/mimetypes">spawngrid/mimetypes</a>
@ -176,7 +176,7 @@
%% cowboy_protocol callbacks
-export([init/3]).
%% cowboy_http_rest callbacks
%% cowboy_rest callbacks
-export([rest_init/2]).
-export([allowed_methods/2]).
-export([malformed_request/2]).
@ -208,7 +208,7 @@
%% @private Upgrade from HTTP handler to REST handler.
init({_Transport, http}, _Req, _Opts) ->
{upgrade, protocol, cowboy_http_rest}.
{upgrade, protocol, cowboy_rest}.
%% @private Set up initial state of REST handler.

View file

@ -18,7 +18,7 @@
%% can be found in the Webmachine source tree, and on the Webmachine
%% documentation available at http://wiki.basho.com/Webmachine.html
%% at the time of writing.
-module(cowboy_http_rest).
-module(cowboy_rest).
-export([upgrade/4]).