From d02f119daddd90b18fc2dad20890508a9ab9ee29 Mon Sep 17 00:00:00 2001 From: conqueror Date: Mon, 16 Jul 2018 11:12:34 -0400 Subject: [PATCH] A public initializer is added to AppFilters --- Sources/ApplicationConfiguration/AppFilters.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/ApplicationConfiguration/AppFilters.swift b/Sources/ApplicationConfiguration/AppFilters.swift index 52853cd..fecfa72 100644 --- a/Sources/ApplicationConfiguration/AppFilters.swift +++ b/Sources/ApplicationConfiguration/AppFilters.swift @@ -9,4 +9,12 @@ public struct AppFilters { var request: [(HTTPRequestFilter, HTTPFilterPriority)]? /// response filters var response: [(HTTPResponseFilter, HTTPFilterPriority)]? + + /// public initalizer + public init(request: [(HTTPRequestFilter, HTTPFilterPriority)]?, + response: [(HTTPResponseFilter, HTTPFilterPriority)]?) { + + self.request = request + self.response = response + } }