Home Applications fast-http

fast-http Awaiting Review

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
0
0 reviews
0
Awards
4
Views
0
IPM installs
0
0
Details
Releases (1)
Reviews
Issues
Fast HTTP wrapper for %Net.HttpRequest

What's new in this version

Initial Release

FastHTTP

FastHTTP is a lightweight wrapper for %Net.HttpRequest in InterSystems IRIS, designed to simplify HTTP requests with a concise API and built-in JSON support.

Installation

With Docker

Clone the repository and run:

docker-compose up -d

With ZPM

zpm "install fast-http"

Usage

Simple GET Request

Set response = ##class(dc.http.FastHTTP).DirectGet("url=https://httpbin.org/get")
write response.%ToJSON()

POST Request with JSON Body

Set body = {"name": "Iris", "type": "Database"}
Set response = ##class(dc.http.FastHTTP).DirectPost("url=https://httpbin.org/post", body)
write response.%ToJSON()

PUT & DELETE

// PUT
Set response = ##class(dc.http.FastHTTP).DirectPut("url=https://httpbin.org/put", {"update": 1})

// DELETE
Set response = ##class(dc.http.FastHTTP).DirectDelete("url=https://httpbin.org/delete")

Configuration String

FastHTTP uses a configuration string to set up the request. You can pass it to the FastHTTP constructor or the Direct... methods.

Format: "key=value,key2=value2"

Supported keys:

  • url: The full URL to send the request to.
  • Header_<Name>: Sets a request header. Ex: Header_Authorization=Bearer 123
  • stream_mode: Resource ID for streaming responses (see Advanced Usage, will be explained later /todo/).

Example with headers:

Set config = "url=https://api.example.com/data,Header_Authorization=Bearer mytoken,Header_Content-Type=application/json"
Set response = ##class(dc.http.FastHTTP).DirectGet(config)

Accessing the Client Instance

The Direct... methods also return the client instance as an output parameter if you need to access the underlying %Net.HttpRequest or response metadata.

Set response = ##class(dc.http.FastHTTP).DirectGet("url=https://httpbin.org/get", , .client)
Write "Status Code: ", client.HttpRequest.HttpResponse.StatusCode
Made with
Install
zpm install fast-http
Version
1.0.019 Feb, 2026
Ideas portal
Category
Frameworks
Works with
InterSystems IRIS
First published
19 Feb, 2026
Last edited
19 Feb, 2026