make OutgoingHttpRequest testable, add handler for file requests in the OutgoingHttpRequest handler