| 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 | { |
no outgoing calls
no test coverage detected