Fix FreeBSD build.
[haiku.git] / headers / os / net / UrlResult.h
bloba0feb35dfd31fda326190a9a1bf1a5be65da6bea
1 /*
2 * Copyright 2010-2017 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _B_URL_RESULT_H_
6 #define _B_URL_RESULT_H_
9 #include <Archivable.h>
10 #include <String.h>
13 class BUrlResult: public BArchivable {
14 public:
15 BUrlResult();
16 BUrlResult(BMessage*);
17 virtual ~BUrlResult();
19 virtual status_t Archive(BMessage*, bool) const;
21 void SetContentType(BString contentType);
22 void SetLength(size_t length);
24 virtual BString ContentType() const;
25 virtual size_t Length() const;
27 static BArchivable* Instantiate(BMessage*);
29 private:
30 BString fContentType;
31 size_t fLength;
34 #endif