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
FileRequest.h
GopherRequest.h
HttpAuthentication.h HttpAuthentication: Add explicit copy & assignment constructors. 2016-05-13 16:49:52 -04:00
HttpForm.h
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
NetAddress.h
NetBuffer.h
NetDebug.h
NetEndpoint.h
NetworkAddress.h Add support for TLS SNI 2016-06-20 19:42:24 -04:00
NetworkAddressResolver.h
NetworkCookie.h
NetworkCookieJar.h
NetworkDevice.h Network Kit: add BNetworkDevice::Control 2016-03-15 21:59:03 +01:00
NetworkInterface.h
NetworkNotifications.h
NetworkRequest.h
NetworkRoster.h
NetworkRoute.h
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
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
UrlRequest.h
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