Package io.varhttp
Class VarConfig
java.lang.Object
io.varhttp.VarConfig
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionforceRequestsSecure(boolean serverSecure) Caution using this method.intgetPort()booleansetPort(int port) 
- 
Constructor Details- 
VarConfigpublic VarConfig()
 
- 
- 
Method Details- 
getPortpublic int getPort()
- 
setPort
- 
isForceRequestSecurepublic boolean isForceRequestSecure()- Returns:
- a boolean indicating if the requests need to be force to a secure channel.
- See Also:
 
- 
forceRequestsSecureCaution using this method. Passing trueto the method will make your server requests behave as secured. In other words this will affect the output ofVarHttpServletRequest.isSecure()This can be useful if your server is behind a proxy/load balancer and is in a secure channel. The default behaviour is false.- Returns:
- updated VarConfiginstance.
 
 
-