CorvusResponse
public protocol CorvusResponse : Content
CorvusResponse is a wrapper type for the result ofQueryEndpoints. Can
be used to add metadata to a response.
-
The item is equivalent to the
QueryEndpoint‘sQuerySubject.Declaration
Swift
associatedtype Item -
Initialises a
CorvusResponsewith a given item. Normally this is the result of theQueryEndpoints‘s handler function.Declaration
Swift
init(item: Item)Parameters
itemThe item to initialize the response with.
CorvusResponse Protocol Reference