Structurehummingbird 2.15.0Hummingbird
RouterPathTrieBuilder
URI Path Trie Builder
This declaration is gated by at least one @_spi attribute.
struct RouterPathTrieBuilder<Value> where Value : Sendable
URI Path Trie Builder
This declaration is gated by at least one @_spi attribute.
struct RouterPathTrieBuilder<Value> where Value : Sendable
import Hummingbird
protocol Sendable
A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init()
func addEntry(_ entry: RouterPath, value: @autoclosure () -> Value, onAdd: (RouterPathTrieBuilder<Value>.Node) -> Void = { _ in })
Add Entry to Trie
func build() -> RouterTrie<Value>
final class Node
Trie Node. Each node represents one component of a URI path