FWRequestDelegate

@protocol FWRequestDelegate <NSObject>

The FWRequestDelegate protocol defines several optional methods you can use to receive network-related messages. All the delegate methods will be called on the main queue.

  • Tell the delegate that the request has finished successfully.

    Declaration

    Objective-C

    - (void)requestFinished:(nonnull __kindof FWBaseRequest *)request;

    Parameters

    request

    The corresponding request.

  • Tell the delegate that the request has failed.

    Declaration

    Objective-C

    - (void)requestFailed:(nonnull __kindof FWBaseRequest *)request;

    Parameters

    request

    The corresponding request.