Skip to content

Missing Type Definitions: RequestMethod, RequestBody, RequestURL #1077

@XAI-oss

Description

@XAI-oss

Hello, I noticed that the following type definitions are not available in the current version of Robyn:
• RequestMethod
• RequestBody
• RequestURL

These are mentioned in the documentation or examples, but they seem to be missing from the package. This causes type checking issues and confusion when developing with Robyn.
Steps to Reproduce
1. Use the following code snippet:
from robyn.robyn import RequestMethod, RequestBody, RequestURL
2. Run the script or check type hints in an editor (e.g., PyCharm, VS Code with type checking enabled).

Expected Behavior:
These types should be available and documented.

Actual Behavior:
Import errors occur for the above types.
Proposed Solution

Could you:
1. Add these type definitions to the library.
2. Document their expected structures (e.g., RequestMethod as Literal["GET", "POST", ...], RequestBody as Dict[str, Any], etc.).

Alternatively, if they are deprecated, it would be helpful to have updated examples or recommendations on how to handle this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions