824dd0a834
* BUrlResult is back, with ContentType and Length methods. * BHttpResult subclasses it and use HTTP header fields to implement those * Introduce BDataRequest for "data" URIs. These embed the data inside the URI, either as plaintext or base64 encoded.
28 lines
487 B
C++
28 lines
487 B
C++
/*
|
|
* Copyright 2010 Haiku Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _B_URL_RESULT_H_
|
|
#define _B_URL_RESULT_H_
|
|
|
|
|
|
#include <String.h>
|
|
|
|
|
|
class BUrlResult {
|
|
public:
|
|
virtual ~BUrlResult();
|
|
void SetContentType(BString contentType);
|
|
void SetLength(size_t length);
|
|
|
|
virtual BString ContentType() const;
|
|
virtual size_t Length() const;
|
|
|
|
private:
|
|
BString fContentType;
|
|
BString fCharset;
|
|
size_t fLength;
|
|
};
|
|
|
|
#endif
|