=str #16493 add factories for HTTP interface

Creating instances of ServerBinding and friends is useful when mocking
HTTP in user tests.