MBXHttpServiceInterceptorInterface.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBXDownloadOptions;
  4. @class MBXHttpRequest;
  5. @class MBXHttpResponse;
  6. /** Interface for intercepting and modifying HttpService function calls. */
  7. NS_SWIFT_NAME(HttpServiceInterceptorInterface)
  8. @protocol MBXHttpServiceInterceptorInterface
  9. /**
  10. * The function to intercept HTTP requests with.
  11. * @param request The original HttpRequest object to be modified.
  12. *
  13. * @return The modified HttpRequest object.
  14. */
  15. - (nonnull MBXHttpRequest *)onRequestForRequest:(nonnull MBXHttpRequest *)request;
  16. /**
  17. * The function to intercept HTTP download options with.
  18. * @param download The original DownloadOptions object to be modified.
  19. *
  20. * @return The modified DownloadOptions object.
  21. */
  22. - (nonnull MBXDownloadOptions *)onDownloadForDownload:(nonnull MBXDownloadOptions *)download;
  23. /**
  24. * The function to intercept HTTP responses with.
  25. * @param response The original HttpResponse object to be modified.
  26. *
  27. * @return The modified HttpResponse object.
  28. */
  29. - (nonnull MBXHttpResponse *)onResponseForResponse:(nonnull MBXHttpResponse *)response;
  30. @end