Writing scalable server applications in the Java™ programming language has always been difficult. Before the advent of the Java New I/O API (NIO), thread management issues made it impossible for a server to scale to thousands of users. The Grizzly NIO framework has been designed to help developers to take advantage of the Java™ NIO API.
when using a
org.glassfish.grizzly.http.HttpResponsePacket.Builder
, the following calls have different behavior:builder.header("Content-Length", 10)
builder.header("content-length", 10)
The first one sets the builder field
contentLength
to10
while the second does not as would be expected.