This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Application_NMeta
siemensikkema edited this page Sep 10, 2020
·
2 revisions
struct NMeta
Create a new NMeta
configuration value.
public init(headerName: String = "N-Meta", platforms: [String] = ["web", "android", "ios"], environments: [String] = ["local", "development", "staging", "production"], exceptPaths: [String] = ["/js/*", "/css/*", "/images/*", "/favicons/*", "/admin/*"], requiredEnvironments: [String] = ["local", "development", "staging", "production"])
- headerName: the request header where NMeta data will be extracted from
- platforms: supported platforms
- environments: supported environments
- exceptPaths: paths to ignore NMeta requirement on. Must start with
/
and may end with/*
to match all sub-paths. - requiredEnvironments: environments to check NMeta header for
Request header where NMeta data will be extracted from
var headerName: String
Supported platforms
var platforms: [String]
Supported environments
var environments: [String]
Ignore requirement on following paths
var exceptPaths: [String]
Only check header on following environments
var requiredEnvironments: [String]
func assertValid(request: Request) throws
private func isMetaRequired(request: Request) throws -> Bool
private func metaOrFail(request: Request) throws -> Request.NMeta
Generated at 2020-09-10T18:42:26+0000 using swift-doc 1.0.0-beta.4.