Mercurial > stress-tester
changeset 715:0029b16967c6
more headers
author | Devel 1 |
---|---|
date | Wed, 29 Nov 2017 16:09:02 +0100 |
parents | 875bc31cea61 |
children | 751516d6b33f |
files | stress-tester/src/main/java/com/passus/st/reader/nc/NcHttpDataUtils.java |
diffstat | 1 files changed, 77 insertions(+), 38 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/reader/nc/NcHttpDataUtils.java Wed Nov 29 14:22:58 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/reader/nc/NcHttpDataUtils.java Wed Nov 29 16:09:02 2017 +0100 @@ -36,44 +36,83 @@ codeToHeader.put((byte) 2, HttpHeaders.ACCEPT_CHARSET); codeToHeader.put((byte) 3, HttpHeaders.ACCEPT_ENCODING); codeToHeader.put((byte) 4, HttpHeaders.ACCEPT_LANGUAGE); - codeToHeader.put((byte) 5, HttpHeaders.AUTHORIZATION); - codeToHeader.put((byte) 6, HttpHeaders.CONTENT_ENCODING); - codeToHeader.put((byte) 7, HttpHeaders.CONTENT_LENGTH); - codeToHeader.put((byte) 8, HttpHeaders.CONTENT_TYPE); - codeToHeader.put((byte) 9, HttpHeaders.CONTENT_DISPOSITION); - codeToHeader.put((byte) 10, HttpHeaders.CONTENT_LANGUAGE); - codeToHeader.put((byte) 11, HttpHeaders.COOKIE); - codeToHeader.put((byte) 12, HttpHeaders.COOKIE2); - codeToHeader.put((byte) 13, HttpHeaders.DATE); - codeToHeader.put((byte) 14, HttpHeaders.EXPIRES); - codeToHeader.put((byte) 15, HttpHeaders.ETAG); - codeToHeader.put((byte) 16, HttpHeaders.HOST); - codeToHeader.put((byte) 17, HttpHeaders.KEEP_ALIVE); - codeToHeader.put((byte) 18, HttpHeaders.LOCATION); - codeToHeader.put((byte) 19, HttpHeaders.ORIGIN); - codeToHeader.put((byte) 20, HttpHeaders.PROXY_AUTHENTICATE); - codeToHeader.put((byte) 21, HttpHeaders.PROXY_AUTHORIZATION); - codeToHeader.put((byte) 22, HttpHeaders.REFERER); - codeToHeader.put((byte) 23, HttpHeaders.SERVER); - codeToHeader.put((byte) 24, HttpHeaders.SET_COOKIE); - codeToHeader.put((byte) 25, HttpHeaders.SET_COOKIE2); - codeToHeader.put((byte) 26, HttpHeaders.TRANSFER_ENCODING); - codeToHeader.put((byte) 27, HttpHeaders.USER_AGENT); - codeToHeader.put((byte) 28, HttpHeaders.VARY); - codeToHeader.put((byte) 29, HttpHeaders.VIA); - codeToHeader.put((byte) 30, HttpHeaders.WWW_AUTHENTICATE); - codeToHeader.put((byte) 31, HttpHeaders.CONNECTION); - codeToHeader.put((byte) 32, HttpHeaders.IF_NONE_MATCH); - codeToHeader.put((byte) 33, HttpHeaders.IF_MODIFIED_SINCE); - codeToHeader.put((byte) 34, HttpHeaders.UPGRADE_INSECURE_REQUESTS); - codeToHeader.put((byte) 35, HttpHeaders.DNT); - codeToHeader.put((byte) 36, HttpHeaders.PRAGMA); - codeToHeader.put((byte) 37, HttpHeaders.P3P); - codeToHeader.put((byte) 38, HttpHeaders.X_XSS_PROTECTION); - codeToHeader.put((byte) 39, HttpHeaders.X_CONTENT_TYPE_OPTIONS); - codeToHeader.put((byte) 40, HttpHeaders.CACHE_CONTROL); - codeToHeader.put((byte) 41, HttpHeaders.X_REQUESTED_WITH); - codeToHeader.put((byte) 42, HttpHeaders.LAST_MODIFIED); + codeToHeader.put((byte) 5, HttpHeaders.ACCEPT_RANGES); + codeToHeader.put((byte) 6, HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS); + codeToHeader.put((byte) 7, HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS); + codeToHeader.put((byte) 8, HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS); + codeToHeader.put((byte) 9, HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN); + codeToHeader.put((byte) 10, HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS); + codeToHeader.put((byte) 11, HttpHeaders.ACCESS_CONTROL_MAX_AGE); + codeToHeader.put((byte) 12, HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS); + codeToHeader.put((byte) 13, HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD); + codeToHeader.put((byte) 14, HttpHeaders.AGE); + codeToHeader.put((byte) 15, HttpHeaders.ALLOW); + codeToHeader.put((byte) 16, HttpHeaders.AUTHORIZATION); + codeToHeader.put((byte) 17, HttpHeaders.CACHE_CONTROL); + codeToHeader.put((byte) 18, HttpHeaders.CONNECTION); + codeToHeader.put((byte) 19, HttpHeaders.CONTENT_DISPOSITION); + codeToHeader.put((byte) 20, HttpHeaders.CONTENT_ENCODING); + codeToHeader.put((byte) 21, HttpHeaders.CONTENT_LANGUAGE); + codeToHeader.put((byte) 22, HttpHeaders.CONTENT_LENGTH); + codeToHeader.put((byte) 23, HttpHeaders.CONTENT_LOCATION); + codeToHeader.put((byte) 24, HttpHeaders.CONTENT_RANGE); + codeToHeader.put((byte) 25, HttpHeaders.CONTENT_SECURITY_POLICY); + codeToHeader.put((byte) 26, HttpHeaders.CONTENT_SECURITY_POLICY_REPORT_ONLY); + codeToHeader.put((byte) 27, HttpHeaders.CONTENT_TYPE); + codeToHeader.put((byte) 28, HttpHeaders.COOKIE); + codeToHeader.put((byte) 29, HttpHeaders.COOKIE2); + codeToHeader.put((byte) 30, HttpHeaders.DNT); + codeToHeader.put((byte) 31, HttpHeaders.DATE); + codeToHeader.put((byte) 32, HttpHeaders.ETAG); + codeToHeader.put((byte) 33, HttpHeaders.EXPECT); + codeToHeader.put((byte) 34, HttpHeaders.EXPIRES); + codeToHeader.put((byte) 35, HttpHeaders.FORWARDED); + codeToHeader.put((byte) 36, HttpHeaders.FROM); + codeToHeader.put((byte) 37, HttpHeaders.HOST); + codeToHeader.put((byte) 38, HttpHeaders.IF_MATCH); + codeToHeader.put((byte) 39, HttpHeaders.IF_MODIFIED_SINCE); + codeToHeader.put((byte) 40, HttpHeaders.IF_NONE_MATCH); + codeToHeader.put((byte) 41, HttpHeaders.IF_RANGE); + codeToHeader.put((byte) 42, HttpHeaders.IF_UNMODIFIED_SINCE); + codeToHeader.put((byte) 43, HttpHeaders.KEEP_ALIVE); + codeToHeader.put((byte) 44, HttpHeaders.LARGE_ALLOCATION); + codeToHeader.put((byte) 45, HttpHeaders.LAST_MODIFIED); + codeToHeader.put((byte) 46, HttpHeaders.LOCATION); + codeToHeader.put((byte) 47, HttpHeaders.ORIGIN); + codeToHeader.put((byte) 48, HttpHeaders.P3P); + codeToHeader.put((byte) 49, HttpHeaders.PRAGMA); + codeToHeader.put((byte) 50, HttpHeaders.PROXY_AUTHENTICATE); + codeToHeader.put((byte) 51, HttpHeaders.PROXY_AUTHORIZATION); + codeToHeader.put((byte) 52, HttpHeaders.PUBLIC_KEY_PINS); + codeToHeader.put((byte) 53, HttpHeaders.PUBLIC_KEY_PINS_REPORT_ONLY); + codeToHeader.put((byte) 54, HttpHeaders.RANGE); + codeToHeader.put((byte) 55, HttpHeaders.REFERER); + codeToHeader.put((byte) 56, HttpHeaders.REFERRER_POLICY); + codeToHeader.put((byte) 57, HttpHeaders.RETRY_AFTER); + codeToHeader.put((byte) 58, HttpHeaders.SERVER); + codeToHeader.put((byte) 59, HttpHeaders.SET_COOKIE); + codeToHeader.put((byte) 60, HttpHeaders.SET_COOKIE2); + codeToHeader.put((byte) 61, HttpHeaders.SOURCEMAP); + codeToHeader.put((byte) 62, HttpHeaders.STRICT_TRANSPORT_SECURITY); + codeToHeader.put((byte) 63, HttpHeaders.TE); + codeToHeader.put((byte) 64, HttpHeaders.TIMING_ALLOW_ORIGIN); + codeToHeader.put((byte) 65, HttpHeaders.TK); + codeToHeader.put((byte) 66, HttpHeaders.TRAILER); + codeToHeader.put((byte) 67, HttpHeaders.TRANSFER_ENCODING); + codeToHeader.put((byte) 68, HttpHeaders.UPGRADE_INSECURE_REQUESTS); + codeToHeader.put((byte) 69, HttpHeaders.USER_AGENT); + codeToHeader.put((byte) 70, HttpHeaders.VARY); + codeToHeader.put((byte) 71, HttpHeaders.VIA); + codeToHeader.put((byte) 72, HttpHeaders.WWW_AUTHENTICATE); + codeToHeader.put((byte) 73, HttpHeaders.WARNING); + codeToHeader.put((byte) 74, HttpHeaders.X_CONTENT_TYPE_OPTIONS); + codeToHeader.put((byte) 75, HttpHeaders.X_DNS_PREFETCH_CONTROL); + codeToHeader.put((byte) 76, HttpHeaders.X_FORWARDED_FOR); + codeToHeader.put((byte) 77, HttpHeaders.X_FORWARDED_HOST); + codeToHeader.put((byte) 78, HttpHeaders.X_FORWARDED_PROTO); + codeToHeader.put((byte) 79, HttpHeaders.X_FRAME_OPTIONS); + codeToHeader.put((byte) 80, HttpHeaders.X_REQUESTED_WITH); + codeToHeader.put((byte) 81, HttpHeaders.X_XSS_PROTECTION); Map<ByteString, Byte> headerToCode = new HashMap<>(codeToHeader.size()); codeToHeader.forEach((code, header) -> headerToCode.put(header, code));