DelegatedMiddleware class final

Inheritance

Constructors

DelegatedMiddleware({required OnRequestDelegate onRequestDelegate, required OnResponseDelegate onResponseDelegate, InitializeDelegate? initializeDelegate, OnExecuteDelegate? onExecuteDelegate, OnRemovedDelegate? onRemovedDelegate})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
initializeDelegate InitializeDelegate?
final
name String
The name of the middleware.
no setteroverride
onExecuteDelegate OnExecuteDelegate?
final
onRemovedDelegate OnRemovedDelegate?
final
onRequestDelegate OnRequestDelegate
final
onResponseDelegate OnResponseDelegate
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onExecute(WordpressRequest request) Future<MiddlewareRawResponse>
Called before executing a request to the WordPress server.
override
onLoad() Future<void>
Called when the middleware is loaded.
override
onRequest(WordpressRequest request) Future<WordpressRequest>
Called before sending a request to the WordPress server.
override
onResponse(WordpressRawResponse response) Future<WordpressRawResponse>
Called after receiving a response from the WordPress server.
override
onUnload() Future<void>
Called when the middleware is unloaded.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited