Skip to content

get_starlette_request → get_http_request - #303

Merged
jlowin merged 1 commit into
mainfrom
context
May 2, 2025
Merged

get_starlette_request → get_http_request#303
jlowin merged 1 commit into
mainfrom
context

Conversation

@jlowin

@jlowin jlowin commented May 2, 2025

Copy link
Copy Markdown
Member

Fast follow to rename new method in #302

Copilot AI review requested due to automatic review settings May 2, 2025 21:36
@jlowin jlowin added the enhancement Improvement to existing functionality. For issues and smaller PR improvements. label May 2, 2025

Copilot AI 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.

Pull Request Overview

This PR renames the function get_starlette_request to get_http_request in the server context module to better reflect its purpose.

  • Renamed the function from get_starlette_request to get_http_request.
  • Updated the method signature accordingly.
Files not reviewed (1)
  • docs/servers/context.mdx: Language not supported
Comments suppressed due to low confidence (1)

src/fastmcp/server/context.py:231

  • The docstring still references 'starlette request' while the function has been renamed to get_http_request. It may be clearer to update the docstring to reflect the new name or intended abstraction.
        """Get the active starlette request."""

@jlowin
jlowin merged commit 5b6bec6 into main May 2, 2025
@jlowin
jlowin deleted the context branch May 2, 2025 21:37
jordicore pushed a commit to jordicore/fastmcp that referenced this pull request Jul 2, 2025
get_starlette_request → get_http_request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement to existing functionality. For issues and smaller PR improvements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants