Skip to content

chore(http): convert RequestMethods to const list #2904

@jeffbcross

Description

@jeffbcross

I made the RequestMethodsMap class during the big refactoring to support Dart, so that it could be declared at the top-level of the enums module. The class takes an enum (integer) and returns the corresponding enum's name. Like requestMethodsMap.get(0)// -> 'GET'But it should be able to be a constant and provide the same usefulness for converting RequestMethods enum values to strings and vice versa, with less overhead

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions