Skip to content

Commit

Permalink
A public initializer is added to AppFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
conqueror committed Jul 16, 2018
1 parent b1445d3 commit d02f119
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/ApplicationConfiguration/AppFilters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit d02f119

Please sign in to comment.