MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetVerb

Function GetVerb

src/openrct2/core/Http.WinHttp.cpp:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 static const wchar_t* GetVerb(Method method)
39 {
40 switch (method)
41 {
42 case Method::GET:
43 return L"GET";
44 case Method::POST:
45 return L"POST";
46 case Method::PUT:
47 return L"PUT";
48 default:
49 throw std::runtime_error("Unsupported verb.");
50 }
51 }
52
53 static int32_t ReadStatusCode(HINTERNET hRequest)
54 {

Callers 1

DoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected