Table of Contents

HttpGetValve

Warning

This valve is deprecated - it is recommended to avoid usage of this valve.

Warning

This valve is blocking - this may hurt throughput and cause performance issues since other pipes won't be able to execute while this valve is waiting on a long-running operation in the same instance of the pipes module, for example due to a network request, disk access or similar. Try to limit the usage of blocking valves, try to ensure that they are fast to execute, and if needed, consider deploying multiple instances of the pipes module.

Note

Item iterator valve to GET a resource using HTTP and adding the response to the current item.

HTTP status code and message will be set in the following item properties:

  • http_response_code
  • http_response_message

HTTP headers are also added to the item using header name as property name.

Response is only added to item if response code is 200 (HTTP OK).

Properties

Name Description Default value Mandatory Supports property expansion
url The URL to GET Yes Yes
dest The item destination property http_response_body No No
binary_content Flag indicating if resource is or should be treated as binary false No No

Example Configuration

{        "name": "HttpGetValve",  "enabled": "true",  "config": {    "url": "http://api.mycompany.com/users/{{item.uid}}",    "dest": "user_data",    "binary_content": "false"  }}

In the example above {{item.uid}} will be fetched from the request.
This value will be set on the property user_data (as configured in the example above).