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.
public abstract class LimitingHttpMessageHandler : DelegatingHandler, IDisposable
- Inheritance
-
LimitingHttpMessageHandler
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
LimitingHttpMessageHandler()
Initializes a new instance of the LimitingHttpMessageHandler class.
protected LimitingHttpMessageHandler()
LimitingHttpMessageHandler(HttpMessageHandler)
Initializes a new instance of the LimitingHttpMessageHandler class.
protected LimitingHttpMessageHandler(HttpMessageHandler innerHandler)
Parameters
innerHandler
HttpMessageHandlerA 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.
public abstract void ResetLimit(long? maxBytesToRead = null)
Parameters
maxBytesToRead
long?The maximum number of bytes to read.