Skip to content

Modify before-request hooks to handle results for fastapi - #3986

Merged
T4rk1n merged 2 commits into
plotly:devfrom
BSd3v:patch-2
Sep 16, 2026
Merged

T4rk1n merged 2 commits into
plotly:devfrom
BSd3v:patch-2

Conversation

@BSd3v

@BSd3v BSd3v commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

For fastapi, the before hooks are a middleware insert.

Flask and Quart both allow for an early return when using before_request hooks, this just allows it to follow the same pattern.

Store the result of before-request hooks and return if not None.
@sonarqubecloud

Copy link
Copy Markdown

@T4rk1n T4rk1n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

@T4rk1n
T4rk1n merged commit d08abba into plotly:dev Sep 16, 2026
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants