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
- Host: GitHub
- URL: https://github.com/wolfadex/deno_elm_http
- Owner: wolfadex
- Created: 2020-11-10T03:55:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T04:03:49.000Z (over 5 years ago)
- Last Synced: 2025-04-02T03:24:16.526Z (about 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```