Skip to content
Browse files

Remove redefining built-in type warning when building doc

  • Loading branch information...
1 parent bca2aa6 commit d8b4c2c863bdef201259e703496c8feca3a29e54 @lpgauth committed Jul 22, 2011
Showing with 5 additions and 13 deletions.
  1. +0 −2 src/lhttpc.erl
  2. +0 −2 src/lhttpc_client.erl
  3. +5 −7 src/lhttpc_lib.erl
  4. +0 −1 src/lhttpc_manager.erl
  5. +0 −1 src/lhttpc_sock.erl
View
2 src/lhttpc.erl
@@ -28,8 +28,6 @@
%%% @doc Main interface to the lightweight http client.
%%% See {@link request/4}, {@link request/5} and {@link request/6} functions.
%%% @end
-%%% @type boolean() = bool().
-%%% @type iolist() = [] | binary() | [char() | binary() | iolist()].
-module(lhttpc).
-behaviour(application).
View
2 src/lhttpc_client.erl
@@ -30,8 +30,6 @@
%%% This module implements the HTTP request handling. This should normally
%%% not be called directly since it should be spawned by the lhttpc module.
%%% @end
-%%% @type boolean() = bool().
-%%% @type iolist() = [] | binary() | [char() | binary() | iolist()].
-module(lhttpc_client).
-export([request/10]).
View
12 src/lhttpc_lib.erl
@@ -1,7 +1,7 @@
%%% ----------------------------------------------------------------------------
%%% Copyright (c) 2009, Erlang Training and Consulting Ltd.
%%% All rights reserved.
-%%%
+%%%
%%% Redistribution and use in source and binary forms, with or without
%%% modification, are permitted provided that the following conditions are met:
%%% * Redistributions of source code must retain the above copyright
@@ -12,7 +12,7 @@
%%% * Neither the name of Erlang Training and Consulting Ltd. nor the
%%% names of its contributors may be used to endorse or promote products
%%% derived from this software without specific prior written permission.
-%%%
+%%%
%%% THIS SOFTWARE IS PROVIDED BY Erlang Training and Consulting Ltd. ''AS IS''
%%% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
%%% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -29,8 +29,6 @@
%%% @doc
%%% This module implements various library functions used in lhttpc.
%%% @end
-%%% @type boolean() = boolean().
-%%% @type iolist() = [] | binary() | [char() | binary() | iolist()].
-module(lhttpc_lib).
-export([
@@ -199,7 +197,7 @@ format_body(Body, true) ->
end.
add_mandatory_hdrs(Method, Hdrs, Host, Port, Body, PartialUpload) ->
- ContentHdrs = add_content_headers(Method, Hdrs, Body, PartialUpload),
+ ContentHdrs = add_content_headers(Method, Hdrs, Body, PartialUpload),
add_host(ContentHdrs, Host, Port).
add_content_headers("POST", Hdrs, Body, PartialUpload) ->
@@ -218,7 +216,7 @@ add_content_headers(Hdrs, Body, false) ->
Hdrs
end;
add_content_headers(Hdrs, _Body, true) ->
- case {header_value("content-length", Hdrs),
+ case {header_value("content-length", Hdrs),
header_value("transfer-encoding", Hdrs)} of
{undefined, undefined} ->
[{"Transfer-Encoding", "chunked"} | Hdrs];
@@ -229,7 +227,7 @@ add_content_headers(Hdrs, _Body, true) ->
end;
{_Length, undefined} ->
Hdrs;
- {_Length, _TransferEncoding} -> %% have both cont.length and chunked
+ {_Length, _TransferEncoding} -> %% have both cont.length and chunked
erlang:error({error, bad_header})
end.
View
1 src/lhttpc_manager.erl
@@ -32,7 +32,6 @@
%%% The gen_server is supposed to be started by a supervisor, which is
%%% normally {@link lhttpc_sup}.
%%% @end
-%%% @type boolean() = bool().
-module(lhttpc_manager).
-export([
View
1 src/lhttpc_sock.erl
@@ -30,7 +30,6 @@
%%% This module implements wrappers for socket operations.
%%% Makes it possible to have the same interface to ssl and tcp sockets.
%%% @end
-%%% @type boolean() = bool().
-module(lhttpc_sock).
-export([

0 comments on commit d8b4c2c

Please sign in to comment.
Something went wrong with that request. Please try again.