Skip to content

Add a HTTP client for client/server#6359

Open
DrSmugleaf wants to merge 11 commits intospace-wizards:masterfrom
DrSmugleaf:feature/http-client
Open

Add a HTTP client for client/server#6359
DrSmugleaf wants to merge 11 commits intospace-wizards:masterfrom
DrSmugleaf:feature/http-client

Conversation

@DrSmugleaf
Copy link
Member

@DrSmugleaf DrSmugleaf commented Dec 29, 2025

Do not merge without PJB's approval I will blow up

My RMC GMs yearn for custom audio playing

@DrSmugleaf DrSmugleaf requested a review from PJB3005 as a code owner December 29, 2025 07:17
@DrSmugleaf DrSmugleaf requested review from ElectroJr and PJB3005 and removed request for PJB3005 December 29, 2025 07:18
@VerinSenpai
Copy link
Contributor

Hey that's pretty heckin cool

Copy link
Member

@PJB3005 PJB3005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to block private IP address ranges

Also no compile

@DrSmugleaf
Copy link
Member Author

DrSmugleaf commented Jan 22, 2026

@DrSmugleaf DrSmugleaf requested a review from PJB3005 January 22, 2026 08:41
if (IPAddress.TryParse(uri.Host, out var ip))
ThrowIfLocalIP(ip);

var addresses = await Dns.GetHostAddressesAsync(uri.Host);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer if these were checked from the connection handler to avoid any TOCTOU shit.

Copy link
Member Author

@DrSmugleaf DrSmugleaf Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 607dca3 (this PR) (assuming I did it properly)

Unrelated, not sure if the new JSON method is safe to expose to content sandbox-wise or not

@PJB3005 PJB3005 added the T: New Feature Type: New feature label Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T: New Feature Type: New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants