From 7264706c21a2533bc3244d01c168085614d13968 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Fri, 17 Jul 2009 23:58:35 +0000 Subject: update ibrowse to 1.5.1+ git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@795278 13f79535-47bb-0310-9956-ffa450edef68 --- src/ibrowse/ibrowse.app | 2 +- src/ibrowse/ibrowse.erl | 28 +++++++++++++++++++--------- src/ibrowse/ibrowse_http_client.erl | 2 +- src/ibrowse/ibrowse_lb.erl | 8 +++++++- src/ibrowse/ibrowse_lib.erl | 12 ++++++------ 5 files changed, 34 insertions(+), 18 deletions(-) diff --git a/src/ibrowse/ibrowse.app b/src/ibrowse/ibrowse.app index a3d23ae7..4f43dd92 100644 --- a/src/ibrowse/ibrowse.app +++ b/src/ibrowse/ibrowse.app @@ -1,6 +1,6 @@ {application, ibrowse, [{description, "HTTP client application"}, - {vsn, "1.5.0"}, + {vsn, "1.5.1"}, {modules, [ ibrowse, ibrowse_http_client, ibrowse_app, diff --git a/src/ibrowse/ibrowse.erl b/src/ibrowse/ibrowse.erl index 56f0ef4d..81fc74df 100644 --- a/src/ibrowse/ibrowse.erl +++ b/src/ibrowse/ibrowse.erl @@ -7,7 +7,7 @@ %%%------------------------------------------------------------------- %% @author Chandrashekhar Mullaparthi %% @copyright 2005-2009 Chandrashekhar Mullaparthi -%% @version 1.5.0 +%% @version 1.5.1 %% @doc The ibrowse application implements an HTTP 1.1 client. This %% module implements the API of the HTTP client. There is one named %% process called 'ibrowse' which assists in load balancing and maintaining configuration. There is one load balancing process per unique webserver. There is @@ -152,7 +152,7 @@ stop() -> %% headerName() = string() %% headerValue() = string() %% response() = {ok, Status, ResponseHeaders, ResponseBody} | {ibrowse_req_id, req_id() } | {error, Reason} -%% req_id = term() +%% req_id() = term() %% ResponseBody = string() | {file, Filename} %% Reason = term() send_req(Url, Headers, Method) -> @@ -169,7 +169,7 @@ send_req(Url, Headers, Method, Body) -> send_req(Url, Headers, Method, Body, []). %% @doc Same as send_req/4. -%% For a description of SSL Options, look in the ssl manpage. If the +%% For a description of SSL Options, look in the ssl manpage. If the %% HTTP Version to use is not specified, the default is 1.1. %%
%%

The host_header option is useful in the case where ibrowse is @@ -181,7 +181,15 @@ send_req(Url, Headers, Method, Body) -> %% used to specify what should go in the Host header in %% the request.

%%