> ## Documentation Index
> Fetch the complete documentation index at: https://omss.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MiddlewareHandler

> Middleware function for a specific operation.

```typescript
type MiddlewareHandler = (context: TOperations[TMethod]["context"], next: () => Promise<TOperations[TMethod]["result"]>) => Promise<TOperations[TMethod]["result"]>
```


## Related topics

- [ProviderServiceMiddleware](/sdk-artifacts/types/ProviderServiceMiddleware.md)
- [MiddlewareOperationMap](/sdk-artifacts/types/MiddlewareOperationMap.md)
- [SourceServiceMiddleware](/sdk-artifacts/types/SourceServiceMiddleware.md)
