Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: note field keys returned have whitespace trimmed #125

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,8 @@ constructor, the list represents each key-value pair.</p>
<p>The outer list represents each key-value pair in the Fields. Keys
which have multiple values are represented by multiple entries in this
list with the same key.</p>
<p>Returned field keys do not include leading or trailing whitespace
characters 0x0a, 0x0d, 0x09 and 0x20.</p>
<h5>Params</h5>
<ul>
<li><a name="method_fields_entries.self"></a><code>self</code>: borrow&lt;<a href="#fields"><a href="#fields"><code>fields</code></a></a>&gt;</li>
Expand Down
2 changes: 2 additions & 0 deletions proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,8 @@ constructor, the list represents each key-value pair.</p>
<p>The outer list represents each key-value pair in the Fields. Keys
which have multiple values are represented by multiple entries in this
list with the same key.</p>
<p>Returned field keys do not include leading or trailing whitespace
characters 0x0a, 0x0d, 0x09 and 0x20.</p>
<h5>Params</h5>
<ul>
<li><a name="method_fields_entries.self"></a><code>self</code>: borrow&lt;<a href="#fields"><a href="#fields"><code>fields</code></a></a>&gt;</li>
Expand Down
5 changes: 4 additions & 1 deletion wit/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,11 @@ interface types {
/// The outer list represents each key-value pair in the Fields. Keys
/// which have multiple values are represented by multiple entries in this
/// list with the same key.
///
/// Returned field keys do not include leading or trailing whitespace
/// characters 0x0a, 0x0d, 0x09 and 0x20.
@since(version = 0.2.0)
entries: func() -> list<tuple<field-key,field-value>>;
entries: func() -> list<tuple<field-key, field-value>>;

/// Make a deep copy of the Fields. Equivalent in behavior to calling the
/// `fields` constructor on the return value of `entries`. The resulting
Expand Down