KnowledgeOS API Reference
Preparing search index...
api/src
Interceptor
Interface Interceptor
interface
Interceptor
{
name
:
string
;
phases
:
InterceptorPhase
[]
;
afterExecute
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
;
beforeExecute
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
;
onAudit
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
;
onException
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
;
onRetry
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
;
}
Index
Properties
name
phases
Methods
after
Execute?
before
Execute?
on
Audit?
on
Exception?
on
Retry?
Properties
Readonly
name
name
:
string
Readonly
phases
phases
:
InterceptorPhase
[]
Methods
Optional
after
Execute
afterExecute
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
Parameters
ctx
:
InterceptorContext
Returns
Promise
<
void
>
Optional
before
Execute
beforeExecute
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
Parameters
ctx
:
InterceptorContext
Returns
Promise
<
void
>
Optional
on
Audit
onAudit
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
Parameters
ctx
:
InterceptorContext
Returns
Promise
<
void
>
Optional
on
Exception
onException
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
Parameters
ctx
:
InterceptorContext
Returns
Promise
<
void
>
Optional
on
Retry
onRetry
?
(
ctx
:
InterceptorContext
)
:
Promise
<
void
>
Parameters
ctx
:
InterceptorContext
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
name
phases
Methods
after
Execute
before
Execute
on
Audit
on
Exception
on
Retry
KnowledgeOS API Reference
Loading...