Comments (1)
They key question I think we should answer, is how and when are server generated response fields visible to the application?
The Date
header is a MUST send in RFC9110, so the server MUST send it (java has a clock). So should the application be able to see that header in the response? should the app be able to modify or delete that header? Jetty has it visible, allows it to be modified, but not deleted.
Jetty treats the Server
header field the same way, but it is less important as the protocol is still correct without it.
The Content-Length
and Content-Encoding
header fields are typically set by the server when the response is committed. Should they be visible to the application after a flush or are they private to how the server actually sent the data. Jetty makes these visible to the app after a commit, but I don't see there is actually reason or need to do so. So perhaps we should say they may be visible.
Finally, there are partial field values derived from methods like setLocale
and setCharacterEncoding
. Should these be visible in the response headers immediately after these methods are called, or only after setContentType
is called or the response is committed or never?
If we don't want definitive answers to any of these questions, then verbage saying result may differ would be good.
cheers
from servlet.
Related Issues (20)
- tests should not be in the jakarta package HOT 6
- ServletResponse.setCharacterEncoding(CharSet encoding) throws NullPointerException if encoding is null
- Blocker for starting EE 11 ballot: TCK user guide, and two folders with a tck-runtime.jar and a tck-utils.jar. I guess an assembly file is needed to create a zip file with those two artefacts, and then we have to add a basic user guide still. HOT 1
- Servlet 6.1.0 - Tomcat 11.0.0-M20 certification request HOT 5
- ServletSecTestServlet imports org.slf4j.Logger but test war doesn't include sl4j HOT 6
- Servlet 6.1.0 - Tomcat 11.0.0-M20 certification request HOT 3
- Finalize the release of Jakarta Servlet 6.1 HOT 8
- Circular dependency between AttributeConverter and JPA HOT 1
- TCK for Servlet 6.1 invalid error code in servlet.tck.api.jakarta_servlet_http.httpservletresponse HOT 2
- TCK for servlet 6.1 servlet/tck/spec/serverpush /ServerPushTests#serverPushCookieTest HOT 1
- addLinkHeader HOT 1
- Version javax.servlet-api 4.0.1 still can be used HOT 1
- TCK coverage missing for attribute elements of cookie-config introduced since web-common_6_0.xsd HOT 1
- Should the new Servlet 6.1 `jakarta.servlet.error.method` attribute be added to `Table 10-1 Request Attributes and their types`? HOT 2
- TCK: CookieTests setPartitionedTest doesn't account for possible implementation differences HOT 3
- TCK: DefaultMappingTests app is missing servlet classes HOT 6
- RFC 6265bis will allow cookies with a value but no name
- Create TCK tests for early hints
- TCK: setMaxAgeZeroTest() expects different Max-Age between EE10 and EE11 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servlet.