[][src]Function krakend_conf::create_endpoint

pub fn create_endpoint(
    pth: String,
    backend_pth: String,
    hosts: Vec<String>,
    method: String
) -> Endpoint

Create a crate::krakend::Endpoint from

  • pth - A url path where krakend will listen at
  • backend_pth - Where to route the requests if all goes well
  • hosts - The host[] in krakend endpoint conf
  • method - HTTP method of this endpoint