PluginLifecycle

abstract class PluginLifecycle<TData>

插件的生命周期对象:这个对象是插件Plugin.invoke方法执行后的返回值, 用来让插件监听请求的生命周期,当执行异步请求时,会在不同的阶段调用插件的生命周期;

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val onBefore: PluginOnBefore<TData>? = null
Link copied to clipboard
open val onCancel: PluginOnCancel? = null
Link copied to clipboard
open val onError: PluginOnError? = null
Link copied to clipboard
open val onFinally: PluginOnFinally<TData>? = null
Link copied to clipboard
open val onMutate: PluginOnMutate<TData>? = null
Link copied to clipboard
open val onRequest: PluginOnRequest<TData>? = null
Link copied to clipboard
open val onSuccess: PluginOnSuccess<TData>? = null