MBXHttpServiceInterceptorInterface
@protocol MBXHttpServiceInterceptorInterface
Interface for intercepting and modifying HttpService function calls.
-
The function to intercept HTTP requests with.
Declaration
Objective-C
- (nonnull MBXHttpRequest *)onRequestForRequest: (nonnull MBXHttpRequest *)request;
Parameters
request
The original HttpRequest object to be modified.
Return Value
The modified HttpRequest object.
-
The function to intercept HTTP download options with.
Declaration
Objective-C
- (nonnull MBXDownloadOptions *)onDownloadForDownload: (nonnull MBXDownloadOptions *)download;
Parameters
download
The original DownloadOptions object to be modified.
Return Value
The modified DownloadOptions object.
-
The function to intercept HTTP responses with.
Declaration
Objective-C
- (nonnull MBXHttpResponse *)onResponseForResponse: (nonnull MBXHttpResponse *)response;
Parameters
response
The original HttpResponse object to be modified.
Return Value
The modified HttpResponse object.