MCPcopy Create free account
hub / github.com/defold/defold / TranslateResult

Function TranslateResult

engine/dlib/src/dlib/webserver.cpp:92–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 static Result TranslateResult(dmHttpServer::Result r)
93 {
94 switch (r)
95 {
96 case dmHttpServer::RESULT_OK:
97 return RESULT_OK;
98 case dmHttpServer::RESULT_SOCKET_ERROR:
99 return RESULT_SOCKET_ERROR;
100 case dmHttpServer::RESULT_INVALID_REQUEST:
101 return RESULT_INVALID_REQUEST;
102 case dmHttpServer::RESULT_ERROR_INVAL:
103 return RESULT_ERROR_INVAL;
104 case dmHttpServer::RESULT_INTERNAL_ERROR:
105 return RESULT_INTERNAL_ERROR;
106 case dmHttpServer::RESULT_UNKNOWN:
107 return RESULT_UNKNOWN;
108 }
109 return RESULT_UNKNOWN;
110 }
111
112 void HttpHeader(void* user_data, const char* key, const char* value)
113 {

Callers 6

NewFunction · 0.85
SetStatusCodeFunction · 0.85
SendFunction · 0.85
ReceiveFunction · 0.85
UpdateFunction · 0.85
SendAttributeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected