IHTTPRequestHandler.cs 666 B

12345678910111213141516171819202122232425262728293031
  1. #if !UNITY_WEBGL || UNITY_EDITOR
  2. using System;
  3. using BestHTTP.Connections;
  4. using BestHTTP.Logger;
  5. namespace BestHTTP.Core
  6. {
  7. public interface IHTTPRequestHandler : IDisposable
  8. {
  9. bool HasCustomRequestProcessor { get; }
  10. KeepAliveHeader KeepAlive { get; }
  11. bool CanProcessMultiple { get; }
  12. ShutdownTypes ShutdownType { get; }
  13. LoggingContext Context { get; }
  14. void Process(HTTPRequest request);
  15. void RunHandler();
  16. /// <summary>
  17. /// An immediate shutdown request that called only on application closure.
  18. /// </summary>
  19. void Shutdown(ShutdownTypes type);
  20. }
  21. }
  22. #endif