Giter Club home page Giter Club logo

Comments (7)

jocelyn avatar jocelyn commented on August 22, 2024

If we know for sure that this protocol version will be used
then we should make the attribute attached

otherwise we can make it a function instead of an attribute
If this is likely to be called many time, then we can always compute on demand and store in internal attribute.

-- Jocelyn

from ewf.

colin-adams avatar colin-adams commented on August 22, 2024

I don't think we can make it attached, as req.server_protocol isn't guaranteed to have sensible content, is is? For instance, an HTTP/0.9 client, or a telnet client. Or does the connector guarantee otherwise when a WSF_REQUEST is created? Has a 400 (or something) response been issued already?

from ewf.

jocelyn avatar jocelyn commented on August 22, 2024

I see .. and no, I don't think the connector does anything for that.
maybe apache does it itself.
but nino don't but we could fix that as well.

from ewf.

jocelyn avatar jocelyn commented on August 22, 2024

then ... maybe we could have that as precondition ...
Or we just make it detachable as you suggested
or keep it attached, but carrying a boolean is_valid: BOOLEAN ...
but I don't feel it good with that.

Probably we could require that at the WSF level
that is to say

WSF_REQUEST.make_from_wgi (r: WGI_REQUEST; vers: HTTP_PROTOCOL_VERSION)
do ... end

and this would be computed and checked in
WSF_TO_WGI_SERVICE.execute (..)

from ewf.

colin-adams avatar colin-adams commented on August 22, 2024

I like that last suggestion.

from ewf.

jocelyn avatar jocelyn commented on August 22, 2024

For now we could still add a class
WSF_HTTP_PROTOCOL_VERSION

that would take as input the server_protocol
and have a is_valid: BOOLEAN

if server_protocol does not carry any information
we could have a default being 1.1

anyway, if such class exist in EWF .. user can start using it, instead of redoing the parsing them self
then later we can decide how to integrate it nicely with WSF_REQUEST

from ewf.

colin-adams avatar colin-adams commented on August 22, 2024

I'll add the class then, and we can decide how to use it later.

from ewf.

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.