Skip to content

Commit 2fb50f5

Browse files
committed
refactor(documentation): update
1 parent 2073a98 commit 2fb50f5

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

documentation/simplew/docs/addons/helper-hosting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var builder = SimpleWHost.CreateApplicationBuilder(args);
5050

5151
builder.ConfigureSimpleW(server => {
5252
server.MapGet("/hello", () => {
53-
return new { mesage = "Hello World !" };
53+
return new { message = "Hello World !" };
5454
});
5555
});
5656

@@ -95,7 +95,7 @@ builder.ConfigureSimpleW(server => {
9595
server.UseHttps(); // native SimpleW HTTPS support, see documentation
9696
9797
server.MapGet("/hello", () => {
98-
return new { mesage = "Hello World !" };
98+
return new { message = "Hello World !" };
9999
});
100100
});
101101
```

documentation/simplew/docs/guide/observability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ server.ConfigureTelemetry(options => {
194194
options.IncludeStackTrace = true;
195195
options.EnrichWithHttpSession = (activity, session) => {
196196
// override host with the X-Forwarded-Host header (set by a trusted reverse proxy)
197-
if (session.Request.Headers.TryGetValue("X-Forwarded-Host", out string? host) {
197+
if (session.Request.Headers.TryGetValue("X-Forwarded-Host", out string? host)) {
198198
activity.SetTag("url.host", host);
199199
}
200200
};

documentation/simplew/docs/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ hero:
2626
features:
2727
- icon:
2828
title: Zero Dependencies, Maximum Speed
29-
details: Built on top of native sockets. Minimal overhead, instant startup and high-performance workloads.
29+
details: Built on top of native sockets. Minimal overhead, instant startup and strong performance under load.
3030
- icon: 🌐
3131
title: Flexible Web Server
3232
details: Handle APIs, static files, and dynamic content through a simple routing model — with full control over behavior.
3333
- icon: 🛡️
3434
title: Production-Grade Core
35-
details: A fully integrated core designed for real-world usage covering security, communication, and observability without external dependencies.
35+
details: A fully integrated core designed for real-world usage, covering security, communication, and observability without external dependencies.
3636
- icon: 🧩
3737
title: Powerful Addons
3838
details: Designed for extensibility. Integrate additional capabilities through independent modules without bloating your core.
@@ -57,7 +57,7 @@ server.MapGet("/api/test/hello", () => {
5757
return new { message = "Hello World !" };
5858
});
5959
60-
// start a blocking background server
60+
// run server
6161
await server.RunAsync();
6262
```
6363

@@ -92,7 +92,7 @@ class Program {
9292
options.IncludeStackTrace = true;
9393
options.EnrichWithHttpSession = (activity, session) => {
9494
// override host with the X-Forwarded-Host header (set by a trusted reverse proxy)
95-
if (session.Request.Headers.TryGetValue("X-Forwarded-Host", out string? host) {
95+
if (session.Request.Headers.TryGetValue("X-Forwarded-Host", out string? host)) {
9696
activity.SetTag("url.host", host);
9797
}
9898
};
@@ -132,7 +132,7 @@ class Program {
132132
});
133133
});
134134
135-
// start a blocking background server
135+
// run server
136136
await server.RunAsync();
137137
}
138138
}
@@ -166,7 +166,7 @@ builder.ConfigureSimpleW(server => {
166166
});
167167
// routes
168168
server.MapGet("/hello", () => {
169-
return new { mesage = "Hello World !" };
169+
return new { message = "Hello World !" };
170170
});
171171
// ssl
172172
X509Certificate2 cert = new(@"C:\Users\SimpleW\ssl\domain.pfx", "password");

0 commit comments

Comments
 (0)