Click or drag to resize

IHttpRequestDispatcher Interface

Sends an HttpRequestData to the API servers and returns a stream containing the response.

Namespace:  DegreeDays.Api.Processing
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
public interface IHttpRequestDispatcher

The IHttpRequestDispatcher type exposes the following members.

Public methodDispatch(HttpRequestData)

Implementations of this interface may choose to handle compressed responses by adding an Accept-Encoding header to the request sent to the server, and by ensuring that the InputStream returned by Dispatch(HttpRequestData) has been inflated. This is all done automatically by the default implementation of IHttpRequestDispatcher that comes with this client library.

Thread Safety
Any general-purpose implementation of this interface must be safe for use by multiple concurrent threads. However, thread safety is not necessary if you're making your own implementation and can be sure that any code that uses it (including any code that uses an IRequestProcessor that uses it) will only be called from a single thread.
See Also