Skip to content

Support simple class with BodySerializationMethod.UrlEncoded #79

@Pokerkoffer

Description

@Pokerkoffer

The param is required to implement IDictionary, https://github.com/canton7/RestEase#url-encoded-bodies e.g.

Task Collect([Body(BodySerializationMethod.UrlEncoded)] Dictionary<string, object> data);

Refit can do this, see: https://github.com/paulcbetts/refit#form-posts e.g.

Task Collect([Body(BodySerializationMethod.UrlEncoded)] Measurement measurement);
// Serialized as: v=1&tid=UA-1234-5&cid=d1e9ea6b-2e8b-4699-93e0-0bcbd26c206c&t=event

Are there any reasons why RestEase doesn't support this or is this just not implemented yet?

Nevertheless, this is an awesome lib! Keep up the good work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions