http

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

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.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