OpenTTD Source: src/network/core/http.h File Reference

OpenTTD Source 15.3

Data Structures | Functions | Variables
http.h File Reference

Basic functions to send and receive HTTP packets. More...

`#include "tcp.h"`

Go to the source code of this file.

## Data Structures
struct | HTTPCallback
| Callback for when the HTTP handler has something to tell us. More...
class | NetworkHTTPSocketHandler
| Base socket handler for HTTP traffic. More...

## Functions
void | NetworkHTTPInitialize ()
| Initialize the HTTP socket handler.
void | NetworkHTTPUninitialize ()
| Uninitialize the HTTP socket handler.

## Variables
constexpr int | HTTP_429_TOO_MANY_REQUESTS = 429

## Detailed Description

Basic functions to send and receive HTTP packets.

Definition in file http.h.

## Function Documentation

## ◆ NetworkHTTPInitialize()

void NetworkHTTPInitialize | ( |  | ) |

Initialize the HTTP socket handler.

Definition at line 250 of file http_curl.cpp.

References Debug, FileExists(), and StartNewThread().

Referenced by NetworkStartUp().

## ◆ NetworkHTTPUninitialize()

void NetworkHTTPUninitialize | ( |  | ) |

Uninitialize the HTTP socket handler.

Definition at line 285 of file http_curl.cpp.

References NetworkHTTPSocketHandler::HTTPReceive(), and lock.

Referenced by NetworkShutDown().

## Variable Documentation

## ◆ HTTP_429_TOO_MANY_REQUESTS

constexpr int HTTP_429_TOO_MANY_REQUESTS = 429
| constexpr

Definition at line 17 of file http.h.