General interface for an http client, using the domain and error classes defined in the httpy module.