Skip to content

Commit b60cbb1

Browse files
committed
Release v2.2.0
1 parent 2b5b7a1 commit b60cbb1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/index.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ The request function takes a parameter object with options. The only mandatory o
8585
* `options` (_object_) Parameters to make the HTTP request.
8686
** `*url*` (_string_) URL to which the request is sent.
8787
** `*method*` (_string_) The HTTP method to use for the request (e.g. "POST", "GET", "HEAD", "PUT", "DELETE"). The default value is `"GET"`.
88-
** `*params*` (_object_) Query or form parameters to be sent with the request.
88+
** `*queryParams*` (_object_) [*v2.2.0+*] Query parameters to be sent with the request.
89+
** `*params*` (_object_) Form parameters to be sent with the request. Will not be used if `*queryParams*` is provided.
8990
** `*headers*` (_object_) HTTP headers, an object where the keys are header names and the values the header values.
9091
** `*connectionTimeout*` (_number_) The timeout on establishing the connection, in milliseconds. The default value is `10000`.
9192
** `*readTimeout*` (_number_) The timeout on waiting to receive data, in milliseconds. The default value is `10000`.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
group=com.enonic.lib
22
projectName=lib-http-client
33
xpVersion=7.0.0
4-
version=2.1.2
4+
version=2.2.0

src/main/resources/lib/http-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ function checkRequired(params, name) {
3636
* @param {object} params JSON parameters.
3737
* @param {string} params.url URL to which the request is sent.
3838
* @param {string} [params.method=GET] The HTTP method to use for the request (e.g. "POST", "GET", "HEAD", "PUT", "DELETE").
39-
* @param {object} [params.params] Query or form parameters to be sent with the request.
4039
* @param {object} [params.queryParams] Query parameters to be sent with the request.
40+
* @param {object} [params.params] Form parameters to be sent with the request. Will not be used if `params.queryParams` is provided.
4141
* @param {object} [params.headers] HTTP headers, an object where the keys are header names and the values the header values.
4242
* @param {number} [params.connectionTimeout=10000] The timeout on establishing the connection, in milliseconds.
4343
* @param {number} [params.readTimeout=10000] The timeout on waiting to receive data, in milliseconds.

0 commit comments

Comments
 (0)