/// Create a new callback server on the provided address
///
/// # Example
///
/// ```ignore
/// let fish = Server::start("127.0.0.1:3306");
///
/// let hook = fish.spawn();
///
/// let _ = async {
///     reqwest::get(format!("http://some.api/?callback={}", hook.url())).await
/// };
///
/// // don't forget to spin up the server!
/// server.await
Create a new callback server on the provided address
Create a new callback server on the provided address
pub fn start<A: Into<SocketAddr>>(addr: A) -> Self {
        let addr = addr.into();
        let endpoint = Url::parse(format!("http://{}", addr).as_str()).unwrap();
        Self::with_endpoint(addr, endpoint)
    }
pub fn start < A : Into < SocketAddr > > ( addr : A ) -> Self { let addr = addr . into ( ) ; let endpoint = Url :: parse ( format ! ( " " addr ) . as_str ( ) ) . unwrap ( ) ; Self :: with_endpoint ( addr , endpoint ) }
Create a new callback server on the provided address
Create a new callback server on the provided address
addr
A
example


let hook = fish.spawn().



don't forget to spin up the server.
server.await
let hook = fish . spawn () . don ' t forget to spin up the server . server . await