
net.dongliu.cute.http.ClientProperties Maven / Gradle / Ivy
The newest version!
package net.dongliu.cute.http;
public class ClientProperties {
/**
* Call this method at the beginning of the application, If you want to set some restricted headers
* such as Connection, Host, etc.
* Or can add -D params in command line
*/
public static void allowRestrictedHeaders() {
System.setProperty("jdk.httpclient.allowRestrictedHeaders", "connection,content-length,expect,host,upgrade");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy