Skip to content

Extension points

phil/safe-http

The package is at 0.x: its extension points are stable only from its 1.0 release. Until then, a minor version may change them, and its CHANGELOG says how.

ToDo
Read through another transport — a proxy, a scoped client, a recording of the testsPass it as client: the guard wraps it
Pin a host to an address, or make tests resolve no namePass resolve: the address is still checked against the private networks
Change what one read may costPass other Limits
Read another part of a bodyPass another ReadRule

What stays closed: the guard itself. SafeHttpClient, AddressGuard and the value objects are final; a site that needs an address the guard refuses — a service of its own network — reads it with its own client, not this one.