cfworker

package module
v0.0.0-...-4051cbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 8 Imported by: 0

README

go-worker-server

a simple way to hook up standard Go HTTP handlers to a Cloudflare Worker

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(h http.Handler)

ListenAndServe accepts a standard http.Handler and will set up the JS environment in a Cloudflare Worker. Once set up, the function also facilitates the translation of JS to Go HTTP object translation and then back the other way in order to respond correctly.

BUG(nkcmr): When JS Header objects are passed into the WASM VM, there is some off-by-one error where one header will always be missing.

Types

This section is empty.

Notes

Bugs

  • When JS Header objects are passed into the WASM VM, there is some off-by-one error where one header will always be missing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL