Skip to content

Commit db8d1c8

Browse files
committed
fix: grammatical issues
1 parent 86368f1 commit db8d1c8

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/Std/Internal/Http/Data/Method.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public section
1414
/-!
1515
# Method
1616
17-
This module provides the `Method` type, that representation HTTP request methods. It defines the
17+
This module provides the `Method` type, that represents an TTP request methods. It defines the
1818
standard set of HTTP methods (e.g. `GET`, `POST`, `PUT`, `DELETE`).
1919
-/
2020

src/Std/Internal/Http/Data/Request.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public section
1818
/-!
1919
# Request
2020
21-
This module provides the `Request` type, which representation a HTTP request. It also defines ways
22-
to build a `Request` using functiosn that make it easier.
21+
This module provides the `Request` type, which represents am HTTP request. It also defines ways
22+
to build a `Request` using functions that make it easier.
2323
-/
2424

2525
namespace Std.Http

src/Std/Internal/Http/Data/Response.lean

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public section
1717
/-!
1818
# Response
1919
20-
This module provides the `Response` type, which representation a HTTP request. It also defines ways
21-
to build a `Request` using functiosn that make it easier.
20+
This module provides the `Response` type, which represents an HTTP response. It also defines
21+
builder functions and convenience methods for constructing responses with various content types.
2222
-/
2323

2424
namespace Std.Http
@@ -55,12 +55,12 @@ HTTP response structure parameterized by body type
5555
-/
5656
structure Response (t : Type) where
5757
/--
58-
The information of the status-line of the request.
58+
The information of the status-line of the response
5959
-/
6060
head : Response.Head := {}
6161

6262
/--
63-
The content of the request.
63+
The content of the response.
6464
-/
6565
body : t
6666
deriving Inhabited
@@ -70,7 +70,7 @@ Builds a HTTP Response.
7070
-/
7171
structure Response.Builder where
7272
/--
73-
The information of the status-line of the request.
73+
The information of the status-line of the response
7474
-/
7575
head : Head := {}
7676

@@ -108,7 +108,7 @@ def version (builder : Builder) (version : Version) : Builder :=
108108
{ builder with head := { builder.head with version := version } }
109109

110110
/--
111-
Adds a single header to the response being built
111+
Sets the headers for the response being built
112112
-/
113113
def headers (builder : Builder) (headers : Headers) : Builder :=
114114
{ builder with head := { builder.head with headers } }
@@ -174,15 +174,15 @@ def html (builder : Builder) (body : String) : Response Body :=
174174
end Builder
175175

176176
/--
177-
Creates a new HTTP Response with OK status and the provided string body
177+
Creates a new HTTP Response with OK status and the provided body
178178
-/
179179
def ok (body : t) (headers : Headers := Headers.empty) : Response t :=
180180
new
181181
|>.headers headers
182182
|>.body body
183183

184184
/--
185-
Creates a new HTTP Response with the specified status and string body
185+
Creates a new HTTP Response with the specified status and body
186186
-/
187187
def buildWithStatus (status : Status) (body : t) : Response t :=
188188
new

src/Std/Internal/Http/Data/Status.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public section
1313
/-!
1414
# Status
1515
16-
This module contains `Status` that is a repreesntation of HTTP status codes. Status codes are three-digit
16+
This module contains `Status` that is a representation of HTTP status codes. Status codes are three-digit
1717
integer codes that describes the result of a HTTP request. In this implementation we do not treat status
1818
code as extensible.
1919

0 commit comments

Comments
 (0)