Skip to content

Is posible to override BaseHTTPMiddleware class #969

@bozzlab

Description

@bozzlab

from my issue #954. I found that middleware decarator are required ( Request and call_next ) on the function. Which call_next() will return a Response value by pass a Request in function. But the call_next(), It's return StreamingResponse ( from Response Class). There are no attribute for Body or any instead to get body object from StreamingResponse.
So if i would like to override BaseHTTPMiddleware, or it's have way to get body from StreamingResponse?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions