mirror of
https://github.com/curl/curl.git
synced 2026-08-04 05:19:59 +03:00
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
This commit is contained in:
parent
2f5d0e497e
commit
954cd3eb48
5 changed files with 28 additions and 21 deletions
|
|
@ -86,6 +86,9 @@ the ownership of the CURL handle has been taken over by the application.
|
|||
.IP "CURL_PUSH_DENY (1)"
|
||||
The callback denies the stream and no data for this will reach the
|
||||
application, the easy handle will be destroyed by libcurl.
|
||||
.IP "CURL_PUSH_ERROROUT (2)"
|
||||
Returning this will reject the pushed stream and return an error back on the
|
||||
parent stream making it get closed with an error. (Added in curl 7.72.0)
|
||||
.IP *
|
||||
All other return codes are reserved for future use.
|
||||
.SH DEFAULT
|
||||
|
|
|
|||
|
|
@ -892,6 +892,7 @@ CURL_PROGRESSFUNC_CONTINUE 7.68.0
|
|||
CURL_PROGRESS_BAR 7.1.1 - 7.4.1
|
||||
CURL_PROGRESS_STATS 7.1.1 - 7.4.1
|
||||
CURL_PUSH_DENY 7.44.0
|
||||
CURL_PUSH_ERROROUT 7.72.0
|
||||
CURL_PUSH_OK 7.44.0
|
||||
CURL_READFUNC_ABORT 7.12.1
|
||||
CURL_READFUNC_PAUSE 7.18.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue