diff --git a/Sources/Hummingbird/Router/Router.swift b/Sources/Hummingbird/Router/Router.swift index 5e404bc60..869cbc81b 100644 --- a/Sources/Hummingbird/Router/Router.swift +++ b/Sources/Hummingbird/Router/Router.swift @@ -68,7 +68,7 @@ public final class Router: RouterMethods, HTTPRespo } /// build responder from router - public func buildResponder() -> BinaryRouterResponder { + public func buildResponder() -> RouterResponder { if self.options.contains(.autoGenerateHeadEndpoints) { self.trie.forEach { node in node.value?.autoGenerateHeadEndpoint() diff --git a/Sources/Hummingbird/Router/BinaryTrie/BinaryRouterResponder.swift b/Sources/Hummingbird/Router/RouterResponder.swift similarity index 96% rename from Sources/Hummingbird/Router/BinaryTrie/BinaryRouterResponder.swift rename to Sources/Hummingbird/Router/RouterResponder.swift index 70dd70767..745616d02 100644 --- a/Sources/Hummingbird/Router/BinaryTrie/BinaryRouterResponder.swift +++ b/Sources/Hummingbird/Router/RouterResponder.swift @@ -14,7 +14,7 @@ import NIOCore -public struct BinaryRouterResponder: HTTPResponder { +public struct RouterResponder: HTTPResponder { let trie: BinaryTrie> let notFoundResponder: any HTTPResponder let options: RouterOptions