Giter VIP home page Giter VIP logo

Comments (5)

abtris avatar abtris commented on May 26, 2024

@zdne commented

@Almad

Specifying a request HTTP message body for a GET request does not violate HTTP1.1. See here and also here.

Also Fielding's comment seems to be spot on. Personally I know of at least one API (GitHub) that does process HTTP request message body even with the GET method (auth token sent in request message body).

Since this is not a violation of the HTTP spec and it is occasionally used I would vote for not introducing this behavior.

from drafter.

abtris avatar abtris commented on May 26, 2024

@Almad commented

@zdne Hmm.

So, yes, you can send a body with GET, and no, it is never useful to do so.

That's why I'd vote for warning. I believe most people add this by mistake and not intentionally...and those who do can get non-harmful warnings.

But we may leave this open.

from drafter.

abtris avatar abtris commented on May 26, 2024

@zdne commented

non-harmful warnings

Regarding warnings I have learned that there are generally two groups of people: Those who don't care about them at all and those who take even the smallest warning very seriously. The later group seems to be a lot bigger (read: louder).

from drafter.

abtris avatar abtris commented on May 26, 2024

@pksunkara commented

I am against adding a warning as long as it's not violating HTTP spec. @zdne Please decide if we are going to tag this as improvement or close this issue.

from drafter.

abtris avatar abtris commented on May 26, 2024

@zdne commented

I guess that some sort of "HTTP module" with its own HTTP-warnings (see apiaryio/snowcrash#51) should be introduced and possible capture this situation.

I would certainly not add this as a current parser's warning.

from drafter.

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.