HttpRoute
public struct HttpRoute
An HTTP route represents a set of URL routing paths. Essentially, a set of routing paths can
simply be represented by an array of strings. However, this entity enables initializing HTTP
routes without having to explicitly convert all path components to String
.
-
Initializes a new HTTP route.
Declaration
Swift
public init(_ paths: [Any])
Parameters
parameters
The HTTP routing paths. All paths are converted to strings using the
String.init(describing:)
initializer.
-
Declaration
Swift
public init(arrayLiteral elements: Any...)