SafeURL is the sealed interface implemented by the URL types in this package. It exists so that a value known to address a safe REST API URL can be passed around and rendered without exposing how it was built.
| 30 | // It exists so that a value known to address a safe REST API URL can be passed |
| 31 | // around and rendered without exposing how it was built. |
| 32 | type SafeURL interface { |
| 33 | String() string |
| 34 | |
| 35 | // The sealed method keeps the set of implementations closed to this package, |
| 36 | // so callers outside it cannot forge a value that claims to be safe. |
| 37 | sealed() |
| 38 | } |
| 39 | |
| 40 | // MutableSafeURL is a REST API URL built from a host prefix, path components, and query |
| 41 | // parameters. The path components and query parameters are URL encoded (aka |
no outgoing calls
no test coverage detected