HttpRequest_v2 Op

HttpRequest

There is a newer version of this op!


This version will not receive any updates. It is recommended to use a newer version.

Current version: Ops.Json.HttpRequest_v3

Request a json file and output an object (ajax, url, json)



Full Name
  • Ops.Json.HttpRequest_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub








No op example found on this server

INPUT PORTS


URL (String)
JsonP (Number: boolean)

wether or not to load jsonp (to circumvent CORS)

headers (Object)

a key/value-object of additional headers to send

body (String)

an optional body to send (for POST/PATCH/PUT)

HTTP Method index (Number: integer)

the http method to use

Content-Type (String)

the content type of the body sent (if any)

parse json (Number: boolean)

do we expect the response to be JSON, then parse the output

Auto request (Number: boolean)

trigger the request on any value change (or on pagereload)

reload (Trigger)

refresh data from remote (overrides an inactive "auto request")

OUTPUT PORTS


data (Object)

the data

response (String)

the unparsed response of the request

Duration MS (Number)
Status Code (Number)
Is Loading (booleanNumber)

currently loading

Loaded (Trigger)

triggers when finished


Patches using HttpRequest_v2

  • Examples
  • Public
  • My Patches

Changelog


Ops.User.pandur.AjaxRequest2 renamed to Ops.Json.AjaxRequest_v2user avatarpandur - 2019-07-10 15:51
bugfixfix multiple requests loadingstatususer avatarstephan - 2023-05-19 11:53
renameOps.Json.AjaxRequest_v2 renamed to Ops.Json.HttpRequest_v2user avatarpandur - 2023-11-08 08:29