BMPPreprocessHttpRequestDelegate

Objective-C

@protocol BMPPreprocessHttpRequestDelegate <NSObject>

Swift

protocol PreprocessHttpRequestDelegate : NSObjectProtocol

Can be used to change request parameters before a request is made.

  • Can be used to change request parameters before a request is made.

    Declaration

    Objective-C

    - (void)preprocessHttpRequest:(nonnull NSString *)type
                      httpRequest:(nonnull BMPHttpRequest *)httpRequest
                completionHandler:
                    (nonnull void (^)(BMPHttpRequest *_Nonnull))completionHandler;

    Swift

    func preprocessHttpRequest(_ type: String, httpRequest: HttpRequest, completionHandler: @escaping (HttpRequest) -> Void)

    Parameters

    type

    Type of the request to be made. Possible values are defined in BMPHttpRequestTypes.h.

    httpRequest

    Configuration object of the request.

    completionHandler

    Completion handler which must be called with the modified BMPHttpRequest. Not calling the completion handler prevents the HTTP request from being sent at all and blocks the player.