hummingbird-project / hummingbird

Lightweight, flexible HTTP server framework written in Swift
Apache License 2.0
1.16k stars 53 forks source link

How to specify a bonjour endpoint to listen on? #522

Closed Dev1an closed 2 months ago

Dev1an commented 2 months ago

Swift NIO-ts uses this nice way to bind a server to a NWEndpoint. So you can let your webserver listen on a bonjour service instead of an IP address. See

In humming bird I only find configurations to listen on a specific hostName or ip address. Is it possible to specify to listen on NWEndpoints?

adam-fowler commented 2 months ago

It's on my list of things to do. I need to verify the new NIOAsyncChannel bind functions support NWEndpoint

Joannis commented 2 months ago

NIOAsyncChannel can wrap an existing Network Services Channel

adam-fowler commented 2 months ago

525

adam-fowler commented 2 months ago

Merged will be in the next release