Enable HTTPS connections.
Using more modern network classes: * BNetworkAddress instead of BNetAddress * BSocket and BSecureSocket instead of BNetEndpoint
This commit is contained in:
committed by
Hamish Morrison
parent
d1b6afe678
commit
4e607e1aae
@@ -12,17 +12,21 @@
|
||||
#include <HttpAuthentication.h>
|
||||
#include <HttpForm.h>
|
||||
#include <HttpHeaders.h>
|
||||
#include <NetEndpoint.h>
|
||||
#include <NetBuffer.h>
|
||||
#include <NetworkAddress.h>
|
||||
#include <UrlProtocol.h>
|
||||
|
||||
|
||||
class BAbstractSocket;
|
||||
|
||||
|
||||
class BUrlProtocolHttp : public BUrlProtocol {
|
||||
public:
|
||||
BUrlProtocolHttp(BUrl& url,
|
||||
BUrlProtocolHttp(BUrl& url, bool ssl = false,
|
||||
BUrlProtocolListener* listener = NULL,
|
||||
BUrlContext* context = NULL,
|
||||
BUrlResult* result = NULL);
|
||||
virtual ~BUrlProtocolHttp();
|
||||
|
||||
virtual status_t SetOption(uint32 option, void* value);
|
||||
|
||||
@@ -56,8 +60,8 @@ private:
|
||||
|
||||
|
||||
private:
|
||||
BNetEndpoint fSocket;
|
||||
BNetAddress fRemoteAddr;
|
||||
BAbstractSocket* fSocket;
|
||||
BNetworkAddress fRemoteAddr;
|
||||
|
||||
int8 fRequestMethod;
|
||||
int8 fHttpVersion;
|
||||
|
||||
Reference in New Issue
Block a user