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