Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 9, 2011
  1. @djnym

    Move webmachine_logger.hrl to include directory.

    djnym authored
    This makes it easy to provide your own custom logging.  If the .hrl is not
    in the include you have to set up additional paths to be able to include it.
Commits on Jun 7, 2011
  1. @b
Commits on Oct 24, 2010
Commits on Mar 19, 2010
  1. An interim fix for PUT request bodies greater than 64M

    Ryan Tilder authored
Commits on Dec 21, 2009
  1. move body-fetched-yet test to outer state from reqdata authored
    also change record name so as to be able to make all modules
    using the reqstate record recompile to see the new record def.
Commits on Nov 30, 2009
  1. removal of the request_srv process authored
Commits on Oct 23, 2009
  1. @beerriot

    host-based dispatching

    beerriot authored
    dispatch rules can now take two different forms:
    The old form: {PathMatchSpec, Module, Paramters}
    The new form: {HostMatchSpec, [{PathMatchSpec, Module, Parameters}]}
    The former is equivalent to the latter with HostMatchSpec={['*'],'*'}
    HostMatchSpec is matched against one of (in order of preference):
      X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Server, Host
    HostMatchSpec can have two forms:
      {[HostPart], PortSpec}
    The latter is equivalent to the former with PortSpec='*'
    The list of host parts is matched against the hostname extracted from a header in much the same way that PathMatchSpec is matched against the path.
    {[], root_resource, [x]}.
    {['*'], [{[], root_resource, [x]}]}.
    {{['*'],'*'}, [{[], root_resource, [x]}]}.
    Will each match the root path of any host.
    {["example","com"], [{[], root_resource, [x]},
                         {["static"], static_resource, [y]}]}.
    Will dispatch the root of to root_resource and to static_resource.
    {['*',"example","com"], [{[], root_resource, [x]},
                             {["static"], static_resource, [y]}]}.
    Will do the same as above, but also for any subdomains of
    {{[host,"local"], 8000}, [{[], res_A, [x]}]}.
    {{[host,"local"], 8001}, [{[], res_B, [x]}]}.
    Will dispatch requests to ?.local:8000/ to res_A and requests to ?.local:8001/ to resB, binding the host part immediately preceeding ".local" to 'host', such that wrq:get_path_info(host, ReqData) would return the matched string.
Commits on Jun 14, 2009
Commits on Jun 1, 2009
  1. provide and honor wrq:set_max_recv_body/2 authored
Commits on May 20, 2009
Commits on Mar 17, 2009
  1. added peer to wrq interface

    justin authored
Commits on Mar 15, 2009
  1. initial import authored
Something went wrong with that request. Please try again.