kapitancho/walnut-lang-psr-http-adapter

There is no license information available for the latest version (0.0.6) of this package.

0.0.6 2024-04-09 22:06 UTC

This package is not auto-updated.

Last update: 2025-04-23 03:18:29 UTC


README

A small adapter for performing HTTP calls to Walnut language code using PSR HTTP.

Installation

To install the latest version, use the following command:

$ composer require kapitancho/walnut-lang-psr-http-adapter

Usage

module demo-psr-http:

handleRequest = ^HttpRequest => HttpResponse :: [
   statusCode: 200,
   protocolVersion: HttpProtocolVersion.HTTP11,
   headers: [:],
   body: 'Hello world!'
];