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
requestThe 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
downloadThe 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
responseThe original HttpResponse object to be modified.
Return Value
The modified HttpResponse object.
MBXHttpServiceInterceptorInterface Protocol Reference