package
2.3.0
Repository: https://github.com/dicej/spin.git
Documentation: pkg.go.dev

# Functions

Get creates a GET HTTP request to a given URL and returns the HTTP response.
Handle sets the handler function for the http trigger.
NewClient returns a new HTTP client compatible with the Spin SDK.
New returns a new initialized Router.
NewTransport returns http.RoundTripper backed by Spin SDK.
Post
Post creates a POST HTTP request and returns the HTTP response.
Send sends an HTTP request and return the HTTP response.

# Constants

The application base path.
The client address for the request.
The component route pattern matched, _excluding_ any wildcard indicator.
The full URL of the request.
The part of the request path that was matched by the route (including the base and wildcard indicator if present).
The request path relative to the component route (including any base).
The component route pattern matched, as written in the component manifest (that is, _excluding_ the base, but including the wildcard indicator if present).

# Structs

Transport implements http.RoundTripper.

# Type aliases

Param is a single URL parameter, consisting of a key and a value.
Params is a Param-slice, as returned by the router.
Router is a http.Handler which can be used to dispatch requests to different handler functions via configurable routes.
RouterHandle is a function that can be registered to a route to handle HTTP requests.