1 /* 2 * Copyright 2013-2017 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Adrien Destugues, pulkomandy@pulkomandy.tk 7 */ 8 9 10 #include <UrlResult.h> 11 12 13 using namespace BPrivate::Network; 14 15 16 BUrlResult::BUrlResult() 17 : 18 fContentType(), 19 fLength(0) 20 { 21 } 22 23 24 BUrlResult::~BUrlResult() 25 { 26 } 27 28 29 void 30 BUrlResult::SetContentType(BString contentType) 31 { 32 fContentType = contentType; 33 } 34 35 36 void 37 BUrlResult::SetLength(off_t length) 38 { 39 fLength = length; 40 } 41 42 43 BString 44 BUrlResult::ContentType() const 45 { 46 return fContentType; 47 } 48 49 50 off_t 51 BUrlResult::Length() const 52 { 53 return fLength; 54 } 55