CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
web_response.h
1
2#pragma once
3
4#include <cstdint>
5#include <net/web_header_collection.h>
6#include <system/idisposable.h>
7#include <system/io/stream.h>
8#include <system/object.h>
9#include <system/shared_ptr.h>
10#include <system/string.h>
11#include <system/uri.h>
12
13namespace System { namespace Net {
14
19class ASPOSECPP_SHARED_CLASS ABSTRACT WebResponse : public System::IDisposable
20{
22 typedef WebResponse ThisType;
25
27 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
29 ASPOSECPP_SHARED_RTTI_INFO_DECL();
30
31public:
34 virtual int64_t get_ContentLength() = 0;
37 virtual String get_ContentType() = 0;
46 ASPOSECPP_SHARED_API virtual bool get_SupportsHeaders();
47
49 ASPOSECPP_SHARED_API virtual void Close();
51 void Dispose() override;
52
56
57protected:
62 virtual void Dispose(bool disposing);
63};
64
65}} // namespace System::Net
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:30
Represents a web response. Objects of this class should only be allocated using System::MakeObject() ...
Definition: web_response.h:20
virtual System::SharedPtr< Uri > get_ResponseUri()=0
Returns the resource's URI.
void Dispose() override
Does nothing.
WebResponse()
Constructs a new instance.
virtual System::SharedPtr< IO::Stream > GetResponseStream()=0
Returns the response stream.
virtual int64_t get_ContentLength()=0
Returns the number of bytes of the resource.
virtual void Dispose(bool disposing)
Disposes the current instance.
virtual System::SharedPtr< WebHeaderCollection > get_Headers()
Returns the collection of the headers that are associated with the current response.
virtual void Close()
Closes the response stream.
virtual String get_ContentType()=0
Returns the MIME type of the resource.
virtual bool get_SupportsHeaders()
Returns a value that indicates if the current response supports headers.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9