Class LimitingHttpMessageHandler
- Namespace
- Fusillade
- Assembly
- Fusillade.dll
Limiting HTTP schedulers only allow a certain number of bytes to be read before cancelling all future requests. This is designed for reading data that may or may not be used by the user later, in order to improve response times should the user later request the data.
- Inheritance
-
Limiting
Http Message Handler
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
LimitingHttpMessageHandler()
Initializes a new instance of the Limiting
LimitingHttpMessageHandler(HttpMessageHandler)
Initializes a new instance of the Limiting
Parameters
innerHandler
HttpMessage Handler A inner handler we will call to get the data.
Methods
ResetLimit(long?)
Resets the total limit of bytes to read. This is usually called when the app resumes from suspend, to indicate that we should fetch another set of data.
Parameters
maxBytesToRead
long?The maximum number of bytes to read.