Skip to content

Commit

Permalink
Mechanism for the plugin to modify the request in addition to indicat…
Browse files Browse the repository at this point in the history
…ing its route
  • Loading branch information
jhs committed Jul 15, 2010
1 parent d35a893 commit 5fd6b02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/somdune_net.erl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ collectHttpHeaders(Sock, UntilTS, BalancerModule, Headers) ->
case apply(BalancerModule, route_request, [Request]) of
{route, {Host, Port}} ->
proxy(Request, Host, Port);
{route_new_request, {Host, Port}, NewRequest} ->
proxy(NewRequest, Host, Port);
{raw_route, {Host, Port}, Data} ->
info("raw_route~n~p", [Data]),
proxy_raw(Request, Data, Host, Port);
Expand Down

0 comments on commit 5fd6b02

Please sign in to comment.