HTTPResponseStatus
extension HTTPResponseStatus: HBResponseGenerator
Extend HTTPResponseStatus to conform to ResponseGenerator
-
Generate response with this response status code
Declaration
Swift
public func response(from request: HBRequest) -> HBResponse