summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-08-01 23:10:10 +0900
committerDaniel Stenberg <daniel@haxx.se>2014-08-02 23:15:46 +0200
commit595f5f0e43b5395881ffb7d3076a9cdd898cfa5d (patch)
tree54660683b0ec539505b234dd0f2141a1ed7a6212 /lib/http.h
parente4f6adb023546d864a1548a28b08112c59d9e85a (diff)
downloadgnurl-595f5f0e43b5395881ffb7d3076a9cdd898cfa5d.tar.gz
gnurl-595f5f0e43b5395881ffb7d3076a9cdd898cfa5d.tar.bz2
gnurl-595f5f0e43b5395881ffb7d3076a9cdd898cfa5d.zip
HTTP2: Support expect: 100-continue
"Expect: 100-continue", which was once deprecated in HTTP/2, is now resurrected in HTTP/2 draft 14. This change adds its support to HTTP/2 code. This change also includes stricter header field checking.
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/http.h b/lib/http.h
index 7cf183101..907755a8a 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -169,7 +169,9 @@ struct http_conn {
sending send_underlying; /* underlying send Curl_send callback */
recving recv_underlying; /* underlying recv Curl_recv callback */
bool closed; /* TRUE on HTTP2 stream close */
- Curl_send_buffer *header_recvbuf; /* store response headers */
+ Curl_send_buffer *header_recvbuf; /* store response headers. We
+ store non-final and final
+ response headers into it. */
size_t nread_header_recvbuf; /* number of bytes in header_recvbuf
fed into upper layer */
int32_t stream_id; /* stream we are interested in */
@@ -185,6 +187,7 @@ struct http_conn {
const uint8_t *upload_mem; /* points to a buffer to read from */
size_t upload_len; /* size of the buffer 'upload_mem' points to */
size_t upload_left; /* number of bytes left to upload */
+ int status_code; /* HTTP status code */
#else
int unused; /* prevent a compiler warning */
#endif