Skip to content

Commit 2a267ed

Browse files
committed
bump to 0.2.2
1 parent f00c77c commit 2a267ed

7 files changed

Lines changed: 25 additions & 14 deletions

File tree

NEWS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# NEWS
22

3+
0.2.2 - 2013/12/30
4+
------------------
5+
6+
- add `hackney_multipart:part/3`: to create a full part with custom
7+
headers.
8+
- fix `hackney_multipart:decode_form/2`
9+
- fix `hackney_multipart:encode_form/2` : do not url encode headers
10+
properties and fix typoe (s/form_data/form-data)
11+
- fix `hackney_multipart:mp_file_header/2`: use the correct
12+
default content-disposition for form-data.
13+
314
0.2.1 - 2013/12/29
415
------------------
516

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Copyright (c) 2013 Benoît Chesneau.
66

7-
__Version:__ 0.2.1
7+
__Version:__ 0.2.2
88

99
# hackney
1010

doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Copyright (c) 2013 Benoît Chesneau.
66

7-
__Version:__ 0.2.1
7+
__Version:__ 0.2.2
88

99
# hackney
1010

doc/hackney_multipart.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ part_result() = <a href="#type-headers">headers()</a> | eof
139139
## Function Index ##
140140

141141

142-
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#boundary-0">boundary/0</a></td><td></td></tr><tr><td valign="top"><a href="#decode_form-2">decode_form/2</a></td><td>decode a multipart form.</td></tr><tr><td valign="top"><a href="#decode_form-3">decode_form/3</a></td><td></td></tr><tr><td valign="top"><a href="#encode_form-1">encode_form/1</a></td><td>encode a list of parts a multiart form.</td></tr><tr><td valign="top"><a href="#encode_form-2">encode_form/2</a></td><td></td></tr><tr><td valign="top"><a href="#len_mp_stream-2">len_mp_stream/2</a></td><td>get the size of a mp stream.</td></tr><tr><td valign="top"><a href="#mp_data_header-2">mp_data_header/2</a></td><td>return the multipart header for a data.</td></tr><tr><td valign="top"><a href="#mp_eof-1">mp_eof/1</a></td><td>return the boundary ennding a multipart.</td></tr><tr><td valign="top"><a href="#mp_file_header-2">mp_file_header/2</a></td><td>return the multipart header for a file that will be sent later.</td></tr><tr><td valign="top"><a href="#mp_header-2">mp_header/2</a></td><td>create a generic multipart header.</td></tr><tr><td valign="top"><a href="#mp_mixed_header-2">mp_mixed_header/2</a></td><td>return the mixed multipart header.</td></tr><tr><td valign="top"><a href="#parser-1">parser/1</a></td><td>Return a multipart parser for the given boundary.</td></tr></table>
142+
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#boundary-0">boundary/0</a></td><td></td></tr><tr><td valign="top"><a href="#decode_form-2">decode_form/2</a></td><td>decode a multipart form.</td></tr><tr><td valign="top"><a href="#encode_form-1">encode_form/1</a></td><td>encode a list of parts a multiart form.</td></tr><tr><td valign="top"><a href="#encode_form-2">encode_form/2</a></td><td></td></tr><tr><td valign="top"><a href="#len_mp_stream-2">len_mp_stream/2</a></td><td>get the size of a mp stream.</td></tr><tr><td valign="top"><a href="#mp_data_header-2">mp_data_header/2</a></td><td>return the multipart header for a data.</td></tr><tr><td valign="top"><a href="#mp_eof-1">mp_eof/1</a></td><td>return the boundary ennding a multipart.</td></tr><tr><td valign="top"><a href="#mp_file_header-2">mp_file_header/2</a></td><td>return the multipart header for a file that will be sent later.</td></tr><tr><td valign="top"><a href="#mp_header-2">mp_header/2</a></td><td>create a generic multipart header.</td></tr><tr><td valign="top"><a href="#mp_mixed_header-2">mp_mixed_header/2</a></td><td>return the mixed multipart header.</td></tr><tr><td valign="top"><a href="#parser-1">parser/1</a></td><td>Return a multipart parser for the given boundary.</td></tr><tr><td valign="top"><a href="#part-3">part/3</a></td><td>create a part.</td></tr></table>
143143

144144

145145
<a name="functions"></a>
@@ -166,13 +166,6 @@ decode_form(Boundary::binary(), Body::binary()) -&gt; {ok, list()} | {error, ter
166166

167167

168168
decode a multipart form.
169-
<a name="decode_form-3"></a>
170-
171-
### decode_form/3 ###
172-
173-
`decode_form(Boundary, Body, Acc) -> any()`
174-
175-
176169
<a name="encode_form-1"></a>
177170

178171
### encode_form/1 ###
@@ -282,3 +275,10 @@ parser(Boundary::binary()) -&gt; <a href="#type-part_parser">part_parser()</a>
282275

283276

284277
Return a multipart parser for the given boundary.
278+
<a name="part-3"></a>
279+
280+
### part/3 ###
281+
282+
`part(Content, Headers, Boundary) -> any()`
283+
284+
create a part

doc/overview.edoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
@copyright 2013 Benoît Chesneau.
19-
@version 0.2.1
19+
@version 0.2.2
2020
@title hackney_lib - Web toolkit
2121

2222
@doc

package.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Expm.Package.new(name: "hackney_lib", description: "Web toolkit -
22
miscellaneous modules to play with HTTP and Web protocols",
3-
version: "0.2.1", keywords: ["web", "http","client", "server", "binary"],
3+
version: "0.2.2", keywords: ["web", "http","client", "server", "binary"],
44
dependencies: ["mimetypes"],
55
licenses: [[name: "Apache License, Version 2.0", file: "LICENSE"]],
66
contributors: [[name: "Adam Rutkowski",
@@ -62,5 +62,5 @@ miscellaneous modules to play with HTTP and Web protocols",
6262
]],
6363
maintainers: [[name: "Benoit Chesneau",
6464
email: "bchesneau@gmail.com"]],
65-
repositories: [[github: "benoitc/hackney_lib", tag: "0.2.1"]])
65+
repositories: [[github: "benoitc/hackney_lib", tag: "0.2.2"]])
6666

src/hackney_lib.app.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{application, hackney_lib,
55
[
66
{description, "Web toolkit"},
7-
{vsn, "0.2.1"},
7+
{vsn, "0.2.2"},
88
{registered, []},
99
{applications, [mimetypes]},
1010
{included_applications, []},

0 commit comments

Comments
 (0)