handler

package
v0.0.0-...-7de2c07 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Overview

Package handler implements the HTTP mechanics of sending StarGate responses

Note: much of this code is cribbed from https://github.com/filecoin-project/boost/blob/main/cmd/booster-http/server.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is a an HTTP Handler for a given StarGate AppResolver

func NewHandler

func NewHandler(prefix string, appResolver stargate.AppResolver) *Handler

NewHandler constructs an http Handler for given prefix + appResolver

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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