| 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 | { |