host_path_for_agent


Description:

[ Version ( since = "0.13.3" ) ]
public bool host_path_for_agent (string local_path, string server_path, Regex user_agent)

Use this method to serve different local path to specific user-agent(s).

The path server_path must already be hosted by this.

Parameters:

this

A Context

local_path

Path to the local file or folder to be hosted

server_path

Web server path already being hosted

user_agent

The user-agent as a Regex.

Returns:

true on success, false otherwise.




2022 vala-language.org