Skip to content

Commit

Permalink
Release v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alansemenov committed Jun 29, 2020
1 parent 2b5b7a1 commit b60cbb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ The request function takes a parameter object with options. The only mandatory o
* `options` (_object_) Parameters to make the HTTP request.
** `*url*` (_string_) URL to which the request is sent.
** `*method*` (_string_) The HTTP method to use for the request (e.g. "POST", "GET", "HEAD", "PUT", "DELETE"). The default value is `"GET"`.
** `*params*` (_object_) Query or form parameters to be sent with the request.
** `*queryParams*` (_object_) [*v2.2.0+*] Query parameters to be sent with the request.
** `*params*` (_object_) Form parameters to be sent with the request. Will not be used if `*queryParams*` is provided.
** `*headers*` (_object_) HTTP headers, an object where the keys are header names and the values the header values.
** `*connectionTimeout*` (_number_) The timeout on establishing the connection, in milliseconds. The default value is `10000`.
** `*readTimeout*` (_number_) The timeout on waiting to receive data, in milliseconds. The default value is `10000`.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group=com.enonic.lib
projectName=lib-http-client
xpVersion=7.0.0
version=2.1.2
version=2.2.0
2 changes: 1 addition & 1 deletion src/main/resources/lib/http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function checkRequired(params, name) {
* @param {object} params JSON parameters.
* @param {string} params.url URL to which the request is sent.
* @param {string} [params.method=GET] The HTTP method to use for the request (e.g. "POST", "GET", "HEAD", "PUT", "DELETE").
* @param {object} [params.params] Query or form parameters to be sent with the request.
* @param {object} [params.queryParams] Query parameters to be sent with the request.
* @param {object} [params.params] Form parameters to be sent with the request. Will not be used if `params.queryParams` is provided.
* @param {object} [params.headers] HTTP headers, an object where the keys are header names and the values the header values.
* @param {number} [params.connectionTimeout=10000] The timeout on establishing the connection, in milliseconds.
* @param {number} [params.readTimeout=10000] The timeout on waiting to receive data, in milliseconds.
Expand Down

0 comments on commit b60cbb1

Please sign in to comment.