CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
http_status_description.h
1
2#pragma once
3
4#include <cstdint>
5#include <net/http_status_code.h>
6#include <system/array.h>
7#include <system/object.h>
8#include <system/string.h>
9
10namespace System { namespace Net {
11
14{
19
21 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
23 ASPOSECPP_SHARED_RTTI_INFO_DECL();
24
25public:
33 static String Get(int32_t code);
34
37
38private:
40 static System::ArrayPtr<System::ArrayPtr<String>> s_httpStatusDescriptions;
41
43 static struct __StaticConstructor__
44 {
45 __StaticConstructor__();
46 } s_constructor__;
47};
48
49}} // namespace System::Net
Contains the utility methods to get the string representation of the HTTP status.
Definition: http_status_description.h:14
static String Get(int32_t code)
Returns a string description of the specified HTTP status code.
static String Get(HttpStatusCode code)
Returns a string description of the specified HTTP status code.
HttpStatusDescription()=delete
The deleted default constructor.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
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
HttpStatusCode
Definition: http_status_code.h:9
Definition: db_command.h:9