Jan Schlicht created MESOS-5357: ----------------------------------- Summary: Add a function to extract HTTP endpoints from an URL. Key: MESOS-5357 URL: https://issues.apache.org/jira/browse/MESOS-5357 Project: Mesos Issue Type: Improvement Components: libprocess Reporter: Jan Schlicht Assignee: Jan Schlicht Fix For: 0.29.0
HTTP endpoints in Mesos receive a {{process::http::Request}} that includes a {{process::http::URL}}. The {{path}} member of the URL instance is of the form {{/master/endpoint}} or {{/slave(n)/endpoint}}. We want to implement authorization of endpoints and need to extract the endpoint from that path and that function should be accessible for masters as well as agents. This can be done by adding a method to {{process::http::URL}} that implements the extraction logic. -- This message was sent by Atlassian JIRA (v6.3.4#6332)