Skip to content

Deno support #198

Open
Open
@talentlessguy

Description

Now that @tinyhttp/router v1.0.5+ no longer depends on http module of Node.js, it should be very easy to implement basic Deno support for tinyhttp. Probably it would be cool to have it located in the separate deno folder with all editor settings specifically for it.

There aren't strict requirements on how it should be implemented, but i suppose we need to use either raw gh links, jspm or skypack to import the router

and we should use Deno's std http lib to pass request and response as generics, e.g. smth like this:

import { Router } from 'https://...'
import { ServerRequest } from 'https://...'

export class App extends Router<ServerRequest, ...> {
 // ...
}

so it works instantly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions