summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-07-16 00:24:29 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-07-16 00:24:29 +0200
commit954cd3eb482a00fda610ca64498d50db2b2e8298 (patch)
tree261374f3a3c9c158a42b0c3bfe33d5cb6bd18b78 /include
parent2f5d0e497e65aefd655a08e5ca96c70cc3123b40 (diff)
downloadgnurl-954cd3eb482a00fda610ca64498d50db2b2e8298.tar.gz
gnurl-954cd3eb482a00fda610ca64498d50db2b2e8298.tar.bz2
gnurl-954cd3eb482a00fda610ca64498d50db2b2e8298.zip
CURL_PUSH_ERROROUT: allow the push callback to fail the parent stream
... by adding support for a new dedicated return code. Suggested-by: Jonathan Cardoso Assisted-by: Erik Johansson URL: https://curl.haxx.se/mail/lib-2020-06/0099.html Closes #5636
Diffstat (limited to 'include')
-rw-r--r--include/curl/multi.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/curl/multi.h b/include/curl/multi.h
index 2e6bb72d6..b911ba92d 100644
--- a/include/curl/multi.h
+++ b/include/curl/multi.h
@@ -427,12 +427,14 @@ CURL_EXTERN CURLMcode curl_multi_assign(CURLM *multi_handle,
* Name: curl_push_callback
*
* Desc: This callback gets called when a new stream is being pushed by the
- * server. It approves or denies the new stream.
+ * server. It approves or denies the new stream. It can also decide
+ * to completely fail the connection.
*
- * Returns: CURL_PUSH_OK or CURL_PUSH_DENY.
+ * Returns: CURL_PUSH_OK, CURL_PUSH_DENY or CURL_PUSH_ERROROUT
*/
-#define CURL_PUSH_OK 0
-#define CURL_PUSH_DENY 1
+#define CURL_PUSH_OK 0
+#define CURL_PUSH_DENY 1
+#define CURL_PUSH_ERROROUT 2 /* added in 7.72.0 */
struct curl_pushheaders; /* forward declaration only */