Documentation ¶
Overview ¶
Adapted from https://github.com/qri-io/starlib/blob/master/http/http.go
Index ¶
Constants ¶
View Source
const ( HeaderContentType = "Content-Type" ContentTypeForm = "application/x-www-form-urlencoded" )
Variables ¶
View Source
var IntegrationID = sdktypes.NewIntegrationIDFromName("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(vars sdkservices.Vars) sdkservices.Integration
func Start ¶
func Start(l *zap.Logger, mux *http.ServeMux, d sdkservices.Dispatcher, c sdkservices.Connections, p sdkservices.Projects)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.