Skip to content

Instance Method

require(_:)

Grabs the named parameter from the parameter bag. If the parameter does not exist, Abort(.internalServerError) is thrown. If the parameter value cannot be converted to String, Abort(.unprocessableEntity) is thrown.
func require(_ name: String) throws -> String

Parameters

name

The name of the parameter.