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
Click to show internal directories.
Click to hide internal directories.