JSON request builder

[io/http/utils/JSON request builder]

Builds a JSON request record with data to be sent as the request's body. For body-less requests, see io/http/utils/Body-less request builder.

Input ports

  • method: ("GET" or "POST" or "PUT" or "PATCH" or "DELETE")

  • URL: string

  • headers: {string: string}

  • data: any

Output ports

  • JSON req.:

      "method": ("GET" or "POST" or "PUT" or "PATCH" or "DELETE"),
      "url": string,
      "headers": {string: string},
      "data": any

Last updated