s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
results
Game Jam III
Crowned
Sat 3 Oct
Winner
🏆 GAMMA ☢ TEAM
Theme
One More Round
This jam is over. The next one will show up here.
See the results
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Utility
Http
chevron_left
Utility
class
Http
Static Methods
functions
CreateJsonContent
functions
IsAllowed
functions
IsHeaderAllowed
functions
RequestAsync
functions
RequestBytesAsync
functions
RequestJsonAsync
functions
RequestStreamAsync
functions
RequestStringAsync
Http
Lets your game make async HTTP requests.
class
Sandbox
.
static
sealed
abstract
Sandbox.Engine
functions
Static Methods
8
CreateJsonContent
(
target
)
HttpContent
Creates a new System.Net.Http.HttpContent instance containing the specified object serialized to JSON.
IsAllowed
(
uri
)
bool
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
(
header
)
bool
Checks if a given header is allowed to be set.
RequestAsync
(
requestUri
,
method
,
content
,
headers
,
cancellationToken
)
Task`1
RequestBytesAsync
(
requestUri
,
method
,
content
,
headers
,
cancellationToken
)
Task`1
RequestJsonAsync
(
requestUri
,
method
,
content
,
headers
,
cancellationToken
)
Task`1
RequestStreamAsync
(
requestUri
,
method
,
content
,
headers
,
cancellationToken
)
Task`1
RequestStringAsync
(
requestUri
,
method
,
content
,
headers
,
cancellationToken
)
Task`1
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.