Skip to content

Derive Serializable and Deserializable for http_types::method::Method #260

@mfelsche

Description

@mfelsche

We want to use Method as part of a config value, deserialized from yaml, in order to easily restrict values to what is supported as HTTP Method by libraries using this lib (e.g. tide and surf).

Currently we have to throw in some custom machinery to make use of the FromStr impl on Method, which is rather cumbersome (to me).

If nothing speaks against it, I can provide the necessary changes as a PR.

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