Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (35 sloc) 1.418 kb
%% @author Justin Sheehy <justin@basho.com>
%% @author Andy Gross <andy@basho.com>
%% @copyright 2007-2009 Basho Technologies
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
-module(webzmachine).
-author('Justin Sheehy <justin@basho.com>').
-author('Andy Gross <andy@basho.com>').
-export([start/0, stop/0]).
-export_type([reqdata/0, context/0, reply/0]).
-include_lib("include/wm_reqdata.hrl").
-opaque reqdata() :: #wm_reqdata{}.
-type context() :: term().
-type reply() :: {Result::term(), reqdata(), context()}.
%% @spec start() -> ok
%% @doc Start the webmachine server.
start() ->
webmachine_deps:ensure(),
application:set_env(webzmachine, server_header, webmachine_request:server_header()),
application:start(crypto),
application:start(webzmachine).
%% @spec stop() -> ok
%% @doc Stop the webmachine server.
stop() ->
application:stop(webzmachine).
Jump to Line
Something went wrong with that request. Please try again.