Skip to content

Implement QHRequest response #5

Description

@dkoster95

The idea of the protocol HTTPRequestActionable is to provide access to the response easily just by instantiating the HTTPRequest.

  • response must be an instance method.

  • it must be implemented using Swift concurrency
    func response() async throws -> HTTPResponse
    func response<T: Decodable>() async throws -> Response<T>

  • It must have a Combine option to be used:
    var responsePublisher: any Publisher<HTTPResponse, Error> { get }
    var responseDecodedPublisher: any Publisher<ResponseType, Error> { get }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions