Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
[elinks.git] / src / protocol / proxy.h
blob9cd003a6deab4057bb3733d68cbacd364124a4a6
1 #ifndef EL__PROTOCOL_PROXY_H
2 #define EL__PROTOCOL_PROXY_H
4 enum connection_state;
5 struct uri;
7 /* Checks if the passed URI has been configured to go through a proxy. The
8 * fragment is removed from the returned URI. */
9 /* If @connection_state is non-NULL it will be set to indicate what error
10 * occured if the function returns NULL. */
11 struct uri *get_proxy_uri(struct uri *uri, enum connection_state *connection_state);
13 /* ``Translates'' the passed URI into the URI being proxied. If it is not a
14 * proxy:// URI it will return the URI with the fragment removed. */
15 struct uri *get_proxied_uri(struct uri *uri);
17 #endif