# Sandbox.Http

Lets your game make async HTTP requests.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: static, abstract, sealed

## Methods

- [`CreateJsonContent`](/api/Sandbox.Http/CreateJsonContent): Creates a new `T:System.Net.Http.HttpContent` instance containing the specified object serialized to JSON.
- [`IsAllowed`](/api/Sandbox.Http/IsAllowed): Check if the given Uri matches the following requirements: 1. Scheme is https/http or wss/ws 2. If it resolves to loopback, only allow ports 80/443/8080/8443 3. Not an ip address 4. Doesn't resolve to a private range
- [`IsHeaderAllowed`](/api/Sandbox.Http/IsHeaderAllowed): Checks if a given header is allowed to be set.
- [`RequestAsync`](/api/Sandbox.Http/RequestAsync)
- [`RequestBytesAsync`](/api/Sandbox.Http/RequestBytesAsync)
- [`RequestJsonAsync`](/api/Sandbox.Http/RequestJsonAsync)
- [`RequestStreamAsync`](/api/Sandbox.Http/RequestStreamAsync)
- [`RequestStringAsync`](/api/Sandbox.Http/RequestStringAsync)
