You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,6 +215,7 @@ The `params` table accepts the following fields:
215
215
*`version` The HTTP version number, currently supporting 1.0 or 1.1.
216
216
*`method` The HTTP method string.
217
217
*`path` The path string.
218
+
*`query` The query string.
218
219
*`headers` A table of request headers.
219
220
*`body` The request body as a string, or an iterator function (see [get_client_body_reader](#get_client_body_reader)).
220
221
*`ssl_verify` Verify SSL cert matches hostname
@@ -357,9 +358,11 @@ Sets the current response based on the given `res`. Ensures that hop-by-hop head
357
358
358
359
## parse_uri
359
360
360
-
`syntax: local scheme, host, port, path= unpack(httpc:parse_uri(uri))`
361
+
`syntax: local scheme, host, port, path, query? = unpack(httpc:parse_uri(uri, query_in_path?))`
361
362
362
-
This is a convenience function allowing one to more easily use the generic interface, when the input data is a URI.
363
+
This is a convenience function allowing one to more easily use the generic interface, when the input data is a URI.
364
+
365
+
As of version `0.10`, the optional `query_in_path` parameter was added, which specifies whether the querystring is to be included in the `path` return value, or separately as its own return value. This defaults to `true` in order to maintain backwards compatability. When set to `false`, `path` will only include the path, and `query` will contain the URI args, not inluding the `?` delimeter.
0 commit comments