Documentation ¶
Overview ¶
Package web defines helper routines for accessing HTTP/HTTPS resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMaybeInsecure ¶
func GetMaybeInsecure(importPath string, security SecurityMode) (urlStr string, body io.ReadCloser, err error)
GetMaybeInsecure returns the body of either the importPath's https resource or, if unavailable and permitted by the security mode, the http resource.
func OpenBrowser ¶
func QueryEscape ¶
Types ¶
type SecurityMode ¶
type SecurityMode int
SecurityMode specifies whether a function should make network calls using insecure transports (eg, plain text HTTP). The zero value is "secure".
const ( Secure SecurityMode = iota Insecure )
Click to show internal directories.
Click to hide internal directories.