Skip to content

Customizable JSON encoding strategies for requests #10

@danielrbrowne

Description

@danielrbrowne

Currently, JSON encoding of the httpBody of the result of the default implementation of the request(baseUrlComponents: URLComponents) throws -> URLRequest method for the APIotaCodableEndpoint protocol is attempted using a fixed instance of JSONEncoder in a default configuration.

JSON encoding of httpBody should be attempted using an instance of JSONEncoder that is provided by the type conforming to APIotaCodableEndpoint via a required property encoder. This is similar to approach used for JSON decoding on the APIotaClient protocol.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions