Nebula
Loading...
Searching...
No Matches
httpstatus.h
Go to the documentation of this file.
1#pragma once
2#ifndef HTTP_HTTPSTATUS_H
3#define HTTP_HTTPSTATUS_H
4//------------------------------------------------------------------------------
14#include "util/string.h"
15
16//------------------------------------------------------------------------------
17namespace Http
18{
20{
21public:
38
40 static Code FromString(const Util::String& str);
42 static Util::String ToString(Code c);
44 static Code FromLong(long l);
47};
48
49} // namespace Http
50//------------------------------------------------------------------------------
51#endif
HTTP status code enumeration (e.g.
Definition httpstatus.h:20
static Code FromLong(long l)
convert from long
Definition httpstatus.cc:38
static Code FromString(const Util::String &str)
convert from string
Definition httpstatus.cc:17
static Util::String ToString(Code c)
convert to string
Definition httpstatus.cc:60
Code
status codes
Definition httpstatus.h:24
@ Continue
Definition httpstatus.h:25
@ ServiceUnavailable
Definition httpstatus.h:34
@ BadRequest
Definition httpstatus.h:27
@ MethodNotAllowed
Definition httpstatus.h:30
@ NotAcceptable
Definition httpstatus.h:31
@ Forbidden
Definition httpstatus.h:28
@ InvalidHttpStatus
Definition httpstatus.h:36
@ InternalServerError
Definition httpstatus.h:32
@ NotImplemented
Definition httpstatus.h:33
@ NotFound
Definition httpstatus.h:29
@ OK
Definition httpstatus.h:26
static Util::String ToHumanReadableString(Code c)
convert code to human readable string
Definition httpstatus.cc:82
This file was generated with Nebula Trifid's idlc compiler tool.
Definition defaulthttprequesthandler.cc:15
Nebula's universal string class.
Definition string.h:50