http2 HTTP Header에는 크기 제한이 있는가? HTTP 통신을 사용하다 보면 헤더에 정보를 담아 보내는 경우가 있다. 여기서 궁금한 점이 생겨 검색해보고 찾은 정보를 공유하려 한다. HTTP 헤더에는 크기제한이 있는가? 답은 상황에따라 다르다. 기본적으로 HTTP RFC에는 헤더의 최대 크기 제한은 없다. 하지만 우리가 사용하는 웹서버 소프트웨어에서 크기를 제한하고 있다. Here is the limit of most popular web server Web Server Defualt Limit Apache 8K Nginx 4K-8K IIS 8K-16K Tomcat 8K – 48K Node (13) - 16K No, HTTP does not define any limit. However most web servers do limit size of h.. 2021. 8. 27. [JAVA] Java에서 InputStream 변환 Byte Array ByteBuffer java로 파일전송을 하거나 파일을 다루게 되는 경우 Stream을 Byte로 바꿔서 다뤄줘야 하는 경우에 사용하게 된다. 1. Byte Array 로 변경하는 방법 InputStream is = new ByteArrayInputStream(new byte[] { 0, 1, 2 }); byte[] targetArray = new byte[is.available()]; is.read(targetArray); InputStream is =new ByteArrayInputStream(newbyte[] { 0, 1, 2, 3, 4, 5, 6 }); // not really known ByteArrayOutputStream buffer =new ByteArrayOutputStream(); int nRead; by.. 2021. 8. 26. 이전 1 다음