changeset 754:66fe741beb94

Cached headers decoding enabled
author Devel 2
date Wed, 13 Dec 2017 14:54:32 +0100
parents a4952d5ec439
children 2105a00fae90
files stress-tester/src/main/java/com/passus/st/AppUtils.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/AppUtils.java	Wed Dec 13 12:34:36 2017 +0100
+++ b/stress-tester/src/main/java/com/passus/st/AppUtils.java	Wed Dec 13 14:54:32 2017 +0100
@@ -1,5 +1,6 @@
 package com.passus.st;
 
+import com.passus.net.http.HttpHeadersDecoder;
 import com.passus.net.type.NetType;
 import com.passus.st.type.STTypes;
 import java.nio.charset.Charset;
@@ -20,10 +21,14 @@
     public static void registerAll() {
         STTypes.registerAll();
         NetType.registerAll();
+
+        HttpHeadersDecoder.setDefaultEnableCachedHeaders(true);
     }
 
     public static void unregisterAll() {
         STTypes.unregisterAll();
         NetType.unregisterAll();
+
+        HttpHeadersDecoder.setDefaultEnableCachedHeaders(false);
     }
 }