Documentation
¶
Overview ¶
Package http contains the helper functions for writing Spin HTTP components in TinyGo, as well as for sending outbound HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get creates a GET HTTP request to a given URL and returns the HTTP response. The destination of the request must be explicitly allowed in the Spin application configuration, otherwise the request will not be sent.
func Handle ¶
func Handle(fn func(http.ResponseWriter, *http.Request))
Handle sets the handler function for the http trigger. It must be set in an init() function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.