Extended Structure
Parameters
extension Parameters
Topics
Instance Methods
func require(String) throws -> StringGrabs the named parameter from the parameter bag. If the parameter does not exist,Abort(.internalServerError)is thrown. If the parameter value cannot be converted toString,Abort(.unprocessableEntity)is thrown.func require<T>(String, as: T.Type) throws -> TGrabs the named parameter from the parameter bag, casting it to aLosslessStringConvertibletype. If the parameter does not exist,Abort(.internalServerError)is thrown. If the parameter value cannot be converted to the required type,Abort(.unprocessableEntity)is thrown.