
Enumeration<String> headers = request.getHeaderNames();
while (headers.hasMoreElements()) {
String name = (String) headers.nextElement();
String value = request.getHeader(name);
log.debug("{}={}", name, value);
}
조회하면 다음과 같은 값들을 조회할 수 있다
host=localhost:8080
connection=keep-alive
content-length=141525
sec-ch-ua-platform="Windows"
authorization=bearer eyJ0eXBlIjoiSldUIiwiYWx....
user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
accept=application/json, text/javascript, */*; q=0.01
sec-ch-ua="Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"
content-type=multipart/form-data; boundary=----WebKitFormBoundaryErDQuy82mb8ADSJp
sec-ch-ua-mobile=?0
origin=null
sec-fetch-site=cross-site
sec-fetch-mode=cors
sec-fetch-dest=empty
accept-encoding=gzip, deflate, br, zstd
accept-language=ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7