Adapters

Plain

Run h3 servers into any unknown runtime!

There might be cases where your runtime is nither Node.js or Web compatible. Using plain adapter you can have an object input/output interface.

This can be also be particulary useful for testing your server or running inside lambda-like environments.

Usage

First, create app entry:

Create plain entry:

Local testing

You can test adapter using any JavaScript runtime.

Example response:

{
  status: 200,
  statusText: '',
  headers: [ [ 'content-type', 'text/html' ] ],
  body: 'Hello world!'
}