warp_subdomain
A simple subdomain parser middleware for Warp web server framework with nano second processing time. 🚀🚀
Usage
... warp route
.and`
... route handler
Example
use HashMap;
use Arc;
use Filter;
use with_subdomain;
async
async
/// If host eg. super-alloy.api.cilen.com.
/// This middleware will return
vec!
/// This middleware also works for localhost that have port in host header.
/// eg. api.localhost:3999
Note
This middlewares will return value with type Arc<Vec<String>>