haiku/headers/os/net
Adrien Destugues f9e1854f19 libbnetapi: fix access to HTTP headers
The asynchronous listener had no reliable way to access HTTP result and
headers from the callbacks. As the callbacks are triggered
asynchronously, they can be run after the request has carried on and,
for example, followed an HTTP redirect, clearing its internal state.

The HeadersReceived callback now passes a reference to BUrlResult for
the request. There are two cases:
- Synchronous listener: passes a reference to the request's results
directly
- Asynchronous listener: archives a copy of the result into the
notification message, and passes a reference to the unarchived copy.

Unfortunately this comes with several ABI and API breakages:
- Change to the prototype of HeadersReceived()
- Change to the class hierarchy of BUrlResult (implements BArchivable)

All users of HTTP requests will need to be updated if they implemented
in HeadersReceived or used BUrlResult.
2017-01-30 20:27:52 +01:00
..
AbstractSocket.h libbnetapi: Extend socket classes. 2016-04-28 22:30:40 -04:00
Certificate.h BHttpRequest: add SSL certificate exception management. 2015-11-09 10:46:58 +01:00
DatagramSocket.h libbnetapi: Extend socket classes. 2016-04-28 22:30:40 -04:00
DataRequest.h Reintroduce BUrlResult and add BDataRequest 2013-12-11 17:29:25 +01:00
FileRequest.h Reintroduce BUrlResult and add BDataRequest 2013-12-11 17:29:25 +01:00
GopherRequest.h Fix gopher 2014-08-08 00:35:20 +02:00
HttpAuthentication.h HttpAuthentication: Add explicit copy & assignment constructors. 2016-05-13 16:49:52 -04:00
HttpForm.h HttpForm needs another friend class for GCC6. 2015-07-30 22:25:19 +02:00
HttpHeaders.h libbnetapi: fix access to HTTP headers 2017-01-30 20:27:52 +01:00
HttpRequest.h Implement CONNECT pass-through for HTTPS proxy 2015-11-11 01:16:38 +01:00
HttpResult.h libbnetapi: fix access to HTTP headers 2017-01-30 20:27:52 +01:00
net_settings.h Rewrote header. Don't know if this is even used/supported. 2009-08-27 12:45:31 +00:00
NetAddress.h Overhauled BNetEndpoint implementation (and BNetAddress, too): 2008-07-13 19:58:35 +00:00
NetBuffer.h - Changed BNetBuffer to a simpler (and R5 compatible) implementation. 2009-01-17 21:28:10 +00:00
NetDebug.h Checked-in the update Scott Mansfield made to these BNet* classes declarations to male 2002-12-17 01:24:44 +00:00
NetEndpoint.h BNetEndpoint: Fix socket leak and reduce Accept() overhead. 2013-11-24 22:36:29 +01:00
NetworkAddress.h Add support for TLS SNI 2016-06-20 19:42:24 -04:00
NetworkAddressResolver.h Add a simple DNS caching system to BNetworkAddress 2015-06-14 15:47:13 +02:00
NetworkCookie.h More relaxing of cookie-setting rules 2014-06-09 11:17:49 +02:00
NetworkCookieJar.h Made the wrong constructor private. 2014-06-11 19:27:03 +02:00
NetworkDevice.h Network Kit: add BNetworkDevice::Control 2016-03-15 21:59:03 +01:00
NetworkInterface.h libbnetapi: Add BNetworkRoute to replace use of route_entry. 2015-04-12 18:50:00 +02:00
NetworkNotifications.h Fix the build, which was broken in r39147. 2010-10-26 10:24:17 +00:00
NetworkRequest.h UrlRequest: add empty SetTimeout for ease of use. 2014-09-26 15:51:36 +02:00
NetworkRoster.h libbnetapi: Add BNetworkRoute to replace use of route_entry. 2015-04-12 18:50:00 +02:00
NetworkRoute.h libbnetapi: Add BNetworkRoute to replace use of route_entry. 2015-04-12 18:50:00 +02:00
ProxySecureSocket.h Implement CONNECT pass-through for HTTPS proxy 2015-11-11 01:16:38 +01:00
SecureSocket.h Add support for TLS SNI 2016-06-20 19:42:24 -04:00
Socket.h libbnetapi: Extend socket classes. 2016-04-28 22:30:40 -04:00
UrlContext.h BHttpRequest: add SSL certificate exception management. 2015-11-09 10:46:58 +01:00
UrlProtocolAsynchronousListener.h Make BUrlProtocolAsynchronousListener inherit BUrlProtocolListener 2013-10-15 10:16:33 +02:00
UrlProtocolDispatchingListener.h libbnetapi: fix access to HTTP headers 2017-01-30 20:27:52 +01:00
UrlProtocolListener.h libbnetapi: fix access to HTTP headers 2017-01-30 20:27:52 +01:00
UrlProtocolRoster.h Refactor UrlRequest/UrlProtocol in the Service Kit 2013-10-08 11:42:05 +02:00
UrlRequest.h UrlRequest: add empty SetTimeout for ease of use. 2014-09-26 15:51:36 +02:00
UrlResult.h libbnetapi: fix access to HTTP headers 2017-01-30 20:27:52 +01:00
UrlSynchronousRequest.h libbnetapi: fix access to HTTP headers 2017-01-30 20:27:52 +01:00