http

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

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

func MatchPattern(pattern string, req string) (vs map[string]string, err error)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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