Skip to content

Implement QHRequest response #5

@dkoster95

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 }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions