Giter Site home page Giter Site logo

Comments (4)

Lukasa avatar Lukasa commented on May 18, 2024

Arguably the more important fact is that the notion of a 'request line' doesn't exist in HTTP/2. Instead there are pseudo-headers: :method, :scheme, :authority, and :path.

from httpie-http2.

Lukasa avatar Lukasa commented on May 18, 2024

I wonder what cURL does. That feels like the correct model to follow.

from httpie-http2.

jinleileiking avatar jinleileiking commented on May 18, 2024

I the same. return 1.1

from httpie-http2.

jinleileiking avatar jinleileiking commented on May 18, 2024
➜  tools git:(master) ✗ http https://nghttp2.org/httpbin/get
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Connection: close
Content-Length: 256
Content-Type: application/json
Date: Tue, 16 May 2017 08:41:55 GMT
Server: nghttpx
Strict-Transport-Security: max-age=31536000
Via: 1.1 nghttpx
X-Backend-Header-Rtt: 0.002316
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block

{
    "args": {},
    "headers": {
        "Accept": "*/*",
        "Accept-Encoding": "gzip, deflate",
        "Host": "nghttp2.org",
        "User-Agent": "HTTPie/0.9.9",
        "Via": "1.1 nghttpx"
    },
    "origin": "120.92.8.170",
    "url": "https://nghttp2.org/httpbin/get"
}

from httpie-http2.

Related Issues (14)

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.