NotificationCenterPublishable
public protocol NotificationCenterPublishable
When applied to a conforming Restable
, and the response from the server
results in any Non-2xx HTTP Response, Restivus will publish a Notification Center
notification, containing the original request and response.
-
Determines if Restivus should publish a
RestivusReceivedNon200
notification for this instance.Declaration
Swift
func shouldPublish(_: HTTPURLResponse) -> Bool
Return Value
Return
true
if Restivus should publish aRestivusReceivedNon200
notification; otherwisefalse
.