Giter Site home page Giter Site logo

Comments (1)

gregw avatar gregw commented on September 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.