Net Module
HttpClient, IPAddress, sockets — networking support.
Component Selection
| Surface | Target |
|---|---|
| Common network types | SharpRuntime::Net |
| Sockets | SharpRuntime::Net.Sockets |
| HTTP, headers, and HTTP JSON extensions | SharpRuntime::Net.Http, SharpRuntime::Net.Http.Headers, SharpRuntime::Net.Http.Json |
| WebSockets | SharpRuntime::Net.WebSockets |
| MIME and network information | SharpRuntime::Net.Mime, SharpRuntime::Net.NetworkInformation |
System::Net::Http — HttpClient
modules/net-http/include/System/Net/Http/
Status: Partial
⚠ No TLS / HTTPS
The current HttpClient implementation supports plain HTTP only.
HTTPS (TLS) is not implemented. Do not use for production HTTPS requests.
| Class | Header | Description |
|---|---|---|
HttpClient | System/Net/Http/HttpClient.hpp | HTTP client (plain HTTP only) |
HttpRequestMessage | System/Net/Http/HttpRequestMessage.hpp | HTTP request with method, URI, headers, content |
HttpResponseMessage | System/Net/Http/HttpResponseMessage.hpp | HTTP response with status code, headers, content |
HttpContent | System/Net/Http/HttpContent.hpp | Abstract base for request/response content |
StringContent | System/Net/Http/StringContent.hpp | Text body content |
ByteArrayContent | System/Net/Http/ByteArrayContent.hpp | Binary body content |
FormUrlEncodedContent | System/Net/Http/FormUrlEncodedContent.hpp | URL-encoded form data |
HttpMethod | System/Net/Http/HttpMethod.hpp | HTTP verb: GET, POST, PUT, DELETE, etc. |
System::Net::Sockets — POSIX-only
modules/net-sockets/include/System/Net/Sockets/
⚠ POSIX-only
The System::Net::Sockets namespace currently uses POSIX socket APIs
(<sys/socket.h>, <unistd.h>). It works on Linux and macOS.
Windows and Emscripten support is a known gap.
| Class | Header | Description |
|---|---|---|
TcpClient | System/Net/Sockets/TcpClient.hpp | TCP client socket wrapper |
UdpClient | System/Net/Sockets/UdpClient.hpp | UDP client socket wrapper |
NetworkStream | System/Net/Sockets/NetworkStream.hpp | Stream over a network socket |
System::Net — Common Types
| Type | Header | Description |
|---|---|---|
IPAddress | System/Net/IPAddress.hpp | IP address (v4/v6) |
IPEndPoint | System/Net/IPEndPoint.hpp | IP address + port |
HttpStatusCode | System/Net/HttpStatusCode.hpp | HTTP status code enum |
WebUtility | System/Net/WebUtility.hpp | URL encode/decode utilities |