pub async fn get_capabilities(
loc: String,
context: Context,
) -> Result<impl Reply, Rejection>
Expand description
Returns the capabilities for the requested location.
§Arguments
loc
: The location that the capabilities are asked of.context
: The Context that contains stuff we need to run.
§Returns
A response that can be send to client. Specifically, it will contain a set of capabilities supported.
§Errors
This function may error (i.e., reject the request) if we failed to load the infrastructure file or contact the requested domain.