"timeout" option has a bug. Uncomment "timeout" in the following script and get 
this error:

$ ./zorba -i -f -q q.jq
error [zerr:ZSTR0040]: type error: Item::getIntValue() not defined for type 
"xs:integer"


jsoniq version "1.0";
import module namespace http="http://zorba.io/modules/http-client";;

http:send-request(
{
  "method": "POST", 
  "href": "http://requestb.in/13727yx1";,
  "authentication":
  {
    "username" : "user",
    "password" : "pass",
    "auth-method" : "Basic"
  },
  "options":
  {
    "status-only": true,
    "override-media-type": "text/plain",
    "follow-redirect": true,
    (: "timeout": "30", :)
    "user-agent": "Mozilla/5.0"
  },
  "headers":
  {
    "name": "value"
  },
  "body":
  {
    "media-type": "text/plain",
    "content": "..."
  }
})
-- 
https://code.launchpad.net/~zorba-coders/zorba/json-http-module/+merge/169579
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to