Skip to content

Commit 7fc2261

Browse files
committed
fix doc typo
1 parent 4d0e032 commit 7fc2261

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

doc/hackney_http.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ connections, for a proxy...
5757
- `{ok, binary(), parser()}`: on body, when a chunk has been
5858
parsed. To continue the parsing you must call
5959
`hackney_http:execute/1` with the given `parser()`.
60-
- `done`: when the parsing is done
61-
- `{done, binary()}`: on body, when no more need to be parsing. The binary
60+
- `{done, binary()}`: when the parsing is done. The binary
6261
given correpond to the non parsed part of the internal buffer.
6362
- `{error, term{}}`: when an error happen
6463
<a name="types"></a>
@@ -73,7 +72,7 @@ given correpond to the non parsed part of the internal buffer.
7372

7473

7574
<pre><code>
76-
body_result() = {more, <a href="#type-parser">parser()</a>, binary()} | {ok, binary(), <a href="#type-parser">parser()</a>} | {done, binary()} | done
75+
body_result() = {more, <a href="#type-parser">parser()</a>, binary()} | {ok, binary(), <a href="#type-parser">parser()</a>} | {done, binary()}
7776
</code></pre>
7877

7978

@@ -236,7 +235,7 @@ Properties are:
236235
- `buffer`: internal buffer of the parser (non parsed)
237236
- `state`: the current state (on_status, on_header, on_body, done)
238237
- `version`: HTTP version
239-
- `content_lenght`: content length header if any
238+
- `content_length`: content length header if any
240239
- `transfer_encoding`: transfer encoding header if any
241240
- `content_type`: content type header if any
242241
- `location`: location header if any

src/hackney_http.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ parser(Options) ->
127127
%% - `buffer': internal buffer of the parser (non parsed)
128128
%% - `state': the current state (on_status, on_header, on_body, done)
129129
%% - `version': HTTP version
130-
%% - `content_lenght': content length header if any
130+
%% - `content_length': content length header if any
131131
%% - `transfer_encoding': transfer encoding header if any
132132
%% - `content_type': content type header if any
133133
%% - `location': location header if any

0 commit comments

Comments
 (0)