Skip to content

Commit

Permalink
Remove redefining built-in type warning when building doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lpgauth committed Jul 22, 2011
1 parent bca2aa6 commit d8b4c2c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/lhttpc.erl
Expand Up @@ -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).

Expand Down
2 changes: 0 additions & 2 deletions src/lhttpc_client.erl
Expand Up @@ -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]).
Expand Down
12 changes: 5 additions & 7 deletions 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
Expand All @@ -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
Expand All @@ -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([
Expand Down Expand Up @@ -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) ->
Expand All @@ -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];
Expand All @@ -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.

Expand Down
1 change: 0 additions & 1 deletion src/lhttpc_manager.erl
Expand Up @@ -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([
Expand Down
1 change: 0 additions & 1 deletion src/lhttpc_sock.erl
Expand Up @@ -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([
Expand Down

0 comments on commit d8b4c2c

Please sign in to comment.