This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
Releases: OpenFn/language-http
Releases · OpenFn/language-http
Adds cheerio parser
Adds a parse(body, script)
function to parse XML and HTML body contents using cheerio and cheerioTableParser
Adds optional parameters to requests and keepCookie to state
- Now all functions supports optional
request
package settings - An optional
keepCookie: true
can be included inside theparams
object to add to the output state the cookie string from the current request
better tests, bugfix on setAuth
v1.0.5 enhanced test coverage, fixed setAuth
bug fixed for setURL
v1.0.4 bug fix for setUrl
setUrl function for endpoint handling
Includes a setUrl
for handling endpoints whether a credential is being used or the user is manually including a path for the request
remove colors from output
v1.0.2 remove colors from output
handle jobs with no credential
and better auth construction + error handling.
new pattern, official 1.0
get
, post
, put
, patch
, and delete
now all take a path, an object with params, and an optional callback.
get(
"https://www.google.com",
{},
function(state) {
return state
}
);
Fail postData when response != 2XX
v0.4.0 fail when code != 200,201,202
added support for each
v0.3.3 add each