diff --git a/docs/1.guide/0.why.md b/docs/1.guide/0.why.md index 628121e..706d1ff 100644 --- a/docs/1.guide/0.why.md +++ b/docs/1.guide/0.why.md @@ -22,7 +22,7 @@ server.listen(3000, () => { Whenever a new request is received, the request event is called with two objects: a request `req` object ([node:IncomingMessage][IncomingMessage]) to access HTTP request details and a response `res` object ([node:ServerResponse][ServerResponse]) that can be used to prepare and send a HTTP response. Popular framework such as [Express](https://expressjs.com/) and [Fastify](https://fastify.dev/) are also based on Node.js server API. -Recent javascript server runtimes like [Deno][Deno] and [Bun][Bun] have a different way to define a server which is similar to web [fetch][fetch] API. +Recent JavaScript server runtimes like [Deno][Deno] and [Bun][Bun] have a different way to define a server which is similar to web [fetch][fetch] API. **Example:** [Deno][Deno] HTTP server ([learn more](https://docs.deno.com/api/deno/~/Deno.serve)): @@ -40,7 +40,7 @@ As you probably noticed, there is a difference between [Node.js][Node.js] and [D There are subtle differences between [Deno][Deno] and [Bun][Bun] too in the way to provide options, server lifecycle, access to request info such as client IP which is not part of [Request][Request] standard are some examples. -Main use-case of this library is for tools and frameworks that want to be runtime agnostic. By using srvx as standard server layer, instead of depending on of the individual runtime APIs, we push javascript ecosystem to be more consistent and moving towards web standards! +Main use-case of this library is for tools and frameworks that want to be runtime agnostic. By using srvx as standard server layer, instead of depending on of the individual runtime APIs, we push JavaScript ecosystem to be more consistent and moving towards web standards! ## How is it different? diff --git a/docs/1.guide/2.handler.md b/docs/1.guide/2.handler.md index 45390e8..89f8b4e 100644 --- a/docs/1.guide/2.handler.md +++ b/docs/1.guide/2.handler.md @@ -30,7 +30,7 @@ serve({ > srvx **never** patches, overrides or extends globals such as [Request][Request] and [Response][Response]. Only few lazy getters prefixed with `x` will optionally be added to the `request` object instance to allow server adoption of [Request][Request]. > [!TIP] -> You can use `xRequest` type for typescript usage. +> You can use `xRequest` type for TypeScript usage. ### `request.xRemoteAddress?`