CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
string_content.h
1
2#pragma once
3
4#include <net/http/byte_array_content.h>
5
6namespace System { namespace Net { namespace Http {
7
12class ASPOSECPP_SHARED_CLASS StringContent : public System::Net::Http::ByteArrayContent
13{
15 typedef StringContent ThisType;
18
20 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
22 ASPOSECPP_SHARED_RTTI_INFO_DECL();
23
24public:
27 ASPOSECPP_SHARED_API StringContent(String content);
31 ASPOSECPP_SHARED_API StringContent(String content, System::SharedPtr<Text::Encoding> encoding);
36 ASPOSECPP_SHARED_API StringContent(String content, System::SharedPtr<Text::Encoding> encoding, String mediaType);
37
38private:
40 static const String defaultMediaType;
41
46 static System::ArrayPtr<uint8_t> GetContentByteArray(String content, System::SharedPtr<Text::Encoding> encoding);
47};
48
49}}} // namespace System::Net::Http
Represents HTTP content as a byte array. Objects of this class should only be allocated using System:...
Definition: byte_array_content.h:17
Represents content of an HTTP entity. Object of this class should only be allocated using System::Mak...
Definition: http_content.h:25
Represents HTTP content as a string. Objects of this class should only be allocated using System::Mak...
Definition: string_content.h:13
StringContent(String content)
Constructs a new instance.
StringContent(String content, System::SharedPtr< Text::Encoding > encoding, String mediaType)
Constructs a new instance.
StringContent(String content, System::SharedPtr< Text::Encoding > encoding)
Constructs a new instance.
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