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
Requires
- php: >=8.2
- kapitancho/walnut-lang: ^0.0.8
- psr/http-factory: 1.0.2
- psr/http-message: 1.0.1
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!'
];