Documentation ¶
Overview ¶
Adapted from https://github.com/qri-io/starlib/blob/master/http/http.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IntegrationID = sdktypes.IntegrationIDFromName("http")
Functions ¶
func MatchPattern ¶ added in v0.4.0
Match request path against pattern. This uses go's http.ServeMux as described in https://pkg.go.dev/net/http#ServeMux. It will return a map of path keys to their values if the request path matches the pattern.
func New ¶
func New(sec sdkservices.Secrets) sdkservices.Integration
func Start ¶
func Start(l *zap.Logger, mux *http.ServeMux, d sdkservices.Dispatcher)
Types ¶
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
HTTPHandler is an autokitteh webhook which implements http.Handler to receive and dispatch asynchronous event notifications.
func (HTTPHandler) ServeHTTP ¶
func (h HTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.