f9e1854f19
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. |
||
---|---|---|
.. | ||
AbstractSocket.h | ||
Certificate.h | ||
DatagramSocket.h | ||
DataRequest.h | ||
FileRequest.h | ||
GopherRequest.h | ||
HttpAuthentication.h | ||
HttpForm.h | ||
HttpHeaders.h | ||
HttpRequest.h | ||
HttpResult.h | ||
net_settings.h | ||
NetAddress.h | ||
NetBuffer.h | ||
NetDebug.h | ||
NetEndpoint.h | ||
NetworkAddress.h | ||
NetworkAddressResolver.h | ||
NetworkCookie.h | ||
NetworkCookieJar.h | ||
NetworkDevice.h | ||
NetworkInterface.h | ||
NetworkNotifications.h | ||
NetworkRequest.h | ||
NetworkRoster.h | ||
NetworkRoute.h | ||
ProxySecureSocket.h | ||
SecureSocket.h | ||
Socket.h | ||
UrlContext.h | ||
UrlProtocolAsynchronousListener.h | ||
UrlProtocolDispatchingListener.h | ||
UrlProtocolListener.h | ||
UrlProtocolRoster.h | ||
UrlRequest.h | ||
UrlResult.h | ||
UrlSynchronousRequest.h |