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 13using namespace BPrivate::Network; 14 15 16BUrlResult::BUrlResult() 17 : 18 fContentType(), 19 fLength(0) 20{ 21} 22 23 24BUrlResult::~BUrlResult() 25{ 26} 27 28 29void 30BUrlResult::SetContentType(BString contentType) 31{ 32 fContentType = contentType; 33} 34 35 36void 37BUrlResult::SetLength(off_t length) 38{ 39 fLength = length; 40} 41 42 43BString 44BUrlResult::ContentType() const 45{ 46 return fContentType; 47} 48 49 50off_t 51BUrlResult::Length() const 52{ 53 return fLength; 54} 55