Commits

Author Commit Message Labels Comments Date
Torbjorn Tornkvist
Better handling of Webmachine hostspecs. When to setup the Mochiweb socket listeners, we may get into problems if the hostspecs consists of wildcards and "variables". We'll try and do the best we can by filtering out sane Hostnames and by checking that the corresponding IP addresses can be found.
Torbjorn Tornkvist
Adding 'enable_webmachine_logger' option. This option is intended for the webmachine_mochiweb:init/1 function. This makes it possible to control if the webmachine_logger shouold be started or not. Thus, your supervisor could look something like: init([]) -> {ok, Dispatch} = file:consult(filename:join([tt_app:get_base_dir(), "priv", "dispatch.conf"])), Options = [{log_dir, tt_app:…
Torbjorn Tornkvist
Removing stupid io:format.
Torbjorn Tornkvist
Implementing support for multiplel IP-Port services.
Bryan Fink
some webmachine_util tests
Bryan Fink
x-forwarded-for should not be used for virtual-host-based dispatching (thanks, Arjan)
Bryan Fink
handle strange "q" value format in Accept header from FeedBurner client (thanks, Marc)
Bryan Fink
webmachine_request_srv no longer exists - remove it from webmachine.app
Bryan Fink
convert existing test functions to eunit
Bryan Fink
more webmachine_dispatcher tests
Bryan Fink
add 'make test' eunit target and some tests in webmachine_dispatcher
Bryan Fink
bug fix: expect {Answer, ReqState} from webmachine_request:req_cookie/0 and :req_qs/0, not just Answer
jus...@basho.com
put incoming req_body in process dict (there is really no other decent way to allow more than one call to wrq:req_body in the same resource fun anymore)
jus...@basho.com
move body-fetched-yet test to outer state from reqdata also change record name so as to be able to make all modules using the reqstate record recompile to see the new record def.
Bryan Fink
in wmtrace_resource, find webmachine install with code:lib_dir/1 instead of depending on it being in deps/webmachine
Bryan Fink
error handlers return {Content, Reqstate}, not just Content
jus...@basho.com
trim the reqdata/reqstate loop in tracebacks
jus...@basho.com
do not double-pad the boundary
jus...@basho.com
quip update
jus...@basho.com
merge
Bryan Fink
for wmtrace logging, don't dig more than one wm_reqdata/reqstate layer deep
Bryan Fink
don't unwrap resource error - it will cause a bad_match in decision core
jus...@basho.com
error catching here does not help
jus...@basho.com
superfluous function
Paul J. Davis
Added a Write callable response method. Body producing functions can return {writer, fun my_callable/1} as the status to indicate that they would like a fun write/1 callable passed to that function. This callable can then be used to write data to the client. An example: -module(writefun_resource). -export([init/1, to_html/2]). -include_lib("webmachine/include/webmachine.hrl"). init([]) -> {ok, undefined}. to_htm…
Bryan Fink
add .manifest -> text/cache-manifest to guess_mime for serving HTML5 cache manifests add .svg -> image/svg+xml to guess_mime for serving SVG images
jus...@basho.com
500 on exception in handle_req
jus...@basho.com
manage reqstate in 404
Bryan Fink
escape ports in trace data, so file:consult/1 won't break
jus...@basho.com
parameterize parameterized modules
  1. Prev
  2. Next