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‘s QuerySubject.

    Declaration

    Swift

    associatedtype Item
  • Initialises a CorvusResponse with a given item. Normally this is the result of the QueryEndpoints‘s handler function.

    Declaration

    Swift

    init(item: Item)

    Parameters

    item

    The item to initialize the response with.