2 * Copyright 2014 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _B_GOPHER_REQUEST_H_
6 #define _B_GOPHER_REQUEST_H_
11 #include <NetworkRequest.h>
14 class BGopherRequest
: public BNetworkRequest
{
16 BGopherRequest(const BUrl
& url
,
17 BUrlProtocolListener
* listener
= NULL
,
18 BUrlContext
* context
= NULL
);
19 virtual ~BGopherRequest();
22 const BUrlResult
& Result() const;
23 void SetDisableListener(bool disable
);
26 status_t
_ProtocolLoop();
30 bool _NeedsLastDotStrip();
31 void _ParseInput(bool last
);
33 BString
& _HTMLEscapeString(BString
&str
);
45 #endif // _B_GOPHER_REQUEST_H_