2013-12-09 20:26:13 +01:00
|
|
|
/*
|
2017-01-29 19:25:02 +01:00
|
|
|
* Copyright 2010-2017 Haiku Inc. All rights reserved.
|
2013-12-09 20:26:13 +01:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _B_URL_RESULT_H_
|
|
|
|
#define _B_URL_RESULT_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <String.h>
|
|
|
|
|
|
|
|
|
2020-07-18 05:58:55 +02:00
|
|
|
namespace BPrivate {
|
|
|
|
|
|
|
|
namespace Network {
|
|
|
|
|
2021-09-11 09:09:44 +02:00
|
|
|
|
2020-07-18 05:58:55 +02:00
|
|
|
class BUrlResult {
|
|
|
|
public:
|
|
|
|
BUrlResult();
|
|
|
|
virtual ~BUrlResult();
|
|
|
|
|
|
|
|
void SetContentType(BString contentType);
|
|
|
|
void SetLength(off_t length);
|
|
|
|
|
|
|
|
virtual BString ContentType() const;
|
|
|
|
virtual off_t Length() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
BString fContentType;
|
|
|
|
off_t fLength;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-09-11 09:09:44 +02:00
|
|
|
} // namespace Network
|
2021-01-22 15:20:19 +01:00
|
|
|
|
2021-09-11 09:09:44 +02:00
|
|
|
} // namespace BPrivate
|
2021-01-22 15:20:19 +01:00
|
|
|
|
2020-07-18 05:58:55 +02:00
|
|
|
#endif // _B_URL_RESULT_H_
|