lunatic-solutions / submillisecond

A lunatic web framework
MIT License
912 stars 18 forks source link

Add host extractor #111

Closed tqwewe closed 1 year ago

tqwewe commented 1 year ago

Adds an extractor Host that that resolves the hostname of the request.

fn host(Host(host): Host) -> String {
    host
}