Pipes
2.1.0 Pipes
2.1.0 Pipes
  • Introduction
  • Configuration
  • Valves
    • Debug
      • Dump Request
      • Dump Session
      • Dump State
    • Flow
      • Flow Fail
      • Flow State Add
      • Assert Value
      • Pipe Exec
      • Pipe Call
    • Item
      • Item Create
      • Item Merge
      • Item Remove
      • Items Remove
      • Item Property Add
      • Item Property Split
      • Item Property Rename
      • Item Property Token Replace
      • MV Property To Items
      • MV Property Join
    • Freja
    • BankID
      • BidOperation
      • BidToItems
    • DateTime
      • Instant Generator
      • Instant Transformer
    • HTTP
      • GET
      • PUT
      • POST
      • DELETE
    • JWT
      • CreateJwt
      • ParseJwt
    • JSON
      • JsonObjectCreate
    • LDAP
      • LDAP Search
      • LDAP Group Filter
      • LDAP Bind
      • LDAP Add
      • LDAP Modify
      • LDAP Move
      • DN Parse
    • JDBC Query
    • Cef event
    • Request
      • RequestParameterExist
      • RequestParameterRename
    • Session
      • Session Put
      • CopyFromSession
    • ScriptEval
    • Codecs
      • Base64 Encode
      • Base64 Decode
    • Tokens
      • Token Authentication
    • PKI
      • X509 Certificate Extractor
      • X509 Certificate Validator
    • Delivery
      • Clean Mobile Valve
      • SMS Valve
      • Voice Valve
      • SMTP Valve
    • OTP
      • OTP Generation
      • OTP Validation
    • Misc
      • Basic Auth
Powered by GitBook
On this page
  • Common configuration
  • Response
  1. Valves

HTTP

PreviousInstant TransformerNextGET

Last updated 1 year ago

HTTP request valves.

Requires module to be configured and deployed.

Valves are NOT part of the Item iteration API. To create Items from response use .

Common configuration

These configuration properties applies to all HTTP valves.

Name
Description
Default value
Mandatory
Expanded

url

Request URL.

N/A

destination

HttpClient instance to use.

"default"

headers

JSON map of request headers.

{}

parameters

JSON map of request parameters. Only applicable if "content_type" is "application/x-www-form-urlencoded"

{}

content

The body as a JSON object. Only applicable if "content_type" is "application/json"

{}

accept_404

If set to true the valve will NOT fail with a status code of 404.

false

{
  "name" : "<valve-name>",
  "config" : {
    "url" : "http://127.0.0.1:8080/echo",
    "destination" : "default",
    "headers": {
      "Accept": "application/json"
    },
    "parameters": {
      "id": "xxx"
    }
  }
}

Response

If request is successful (status 200) the response body and headers are set in the current flow state. If request fails, Pipe will fail with response text as reason.

Name
Description

headers

JSON map of response headers

body

If response body is of type application/json the data will be parsed as JSON. If it is of type text/* the data will be parsed as text. Otherwise it will be binary.

response_code

HTTP response code as an integer.

ItemCreateValve
HttpClient