An open API service indexing awesome lists of open source software.

https://github.com/wolfadex/deno_elm_http

A Deno XMLHttpRequest polyfill specifically for Elm
https://github.com/wolfadex/deno_elm_http

Last synced: 8 months ago
JSON representation

A Deno XMLHttpRequest polyfill specifically for Elm

Awesome Lists containing this project

README

          

# Deno Elm Http

This is a XMLHttpRequest polyfill specifically for Elm to allow the use of Elm's `Platform.worker` to make requests since Elm uses XMLHttpRequest internally for HTTP requests. This is NOT intended to be a polyfill for all use cases.

## Use

Just import this at the top of your project before you initialize Elm, like so
```typescript
import "http://github.com/wolfadex/deno_elm_http/raw/master/http-polyfill.ts";
import Elm from "./elm.js"

Elm.Main.init();
```