Package org.takes.tk
Class TkProxy
- java.lang.Object
-
- org.takes.tk.TkProxy
-
-
Constructor Detail
-
TkProxy
public TkProxy(URI tgt)
Ctor.- Parameters:
tgt
- Target to which requests are forwarded
-
TkProxy
public TkProxy(String tgt)
Ctor.- Parameters:
tgt
- Target to which requests are forwarded
-
TkProxy
public TkProxy(String tgt, String mark)
Ctor.- Parameters:
tgt
- Target to which requests are forwardedmark
- Marker (text label) to add to the HTTP header
-
TkProxy
public TkProxy(URI tgt, String mark)
Ctor.The
target
parameter takes the destination URL to which requests are proxied. Some valid examples:http://example.com
http://www.example.com
https://example.com:8080
https://example.com/x/y
- Parameters:
tgt
- Target to which requests are forwardedmark
- Marker (text label) to add to the HTTP header
-
-