Comments (4)
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.
I wonder what cURL does. That feels like the correct model to follow.
from httpie-http2.
I the same. return 1.1
from httpie-http2.
➜ 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)
- AttributeError: 'HTTP20Response' object has no attribute '_original_response' HOT 28
- Only First Attempt to Send Succeeds HOT 1
- Error: hyper.http20.exceptions.StreamResetError
- 'http --verify no' does verify SSL Certificate HOT 1
- Does not follow HTTP/2 3XX redirects
- TypeError: sequence item 0: expected str instance, bytes found
- Request incorrectly shows `Connection` header HOT 1
- Missing reason in Status-Line HOT 2
- Doesn't print HTTP headers HOT 9
- It's not working at all with current hyper. HOT 5
- --verify=no doesn't work HOT 5
- Any HTTP/2 request fails on current HTTPie versions - Connection-specific header field present: b'connection' HOT 3
- support grpc ? :) HOT 1
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 httpie-http2.