Skip to content

Commit 882b09a

Browse files
David-OngaroDerGuteMoritz
authored andcommitted
Fix typos
1 parent a6f1579 commit 882b09a

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ While it's tempting to reformat things left and right, this has the downside of
101101

102102
## Updating dependencies
103103

104-
There’s some extra steps to test when updating dependencies:
104+
There are some extra steps to test when updating dependencies:
105105

106106
1. After you've made your changes to `project.clj`, be sure to rerun the tests with `lein test`.
107107

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ For HTTP client requests, Aleph models itself after [clj-http](https://github.co
7272

7373
Aleph attempts to mimic the clj-http API and capabilities fully. It supports multipart/form-data requests, cookie stores, proxy servers and requests inspection with a few notable differences:
7474

75-
* proxy configuration should be set for the connection when seting up a connection pool, per-request proxy setups are not allowed
75+
* proxy configuration should be set for the connection when setting up a connection pool, per-request proxy setups are not allowed
7676

7777
* HTTP proxy functionality is extended with tunneling settings, optional HTTP headers and connection timeout control, see [all configuration keys](https://github.com/clj-commons/aleph/blob/d33c76d6c7d1bf9788369fe6fd9d0e56434c8244/src/aleph/http.clj#L122-L132)
7878

examples/src/aleph/examples/http.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
(hello-world-handler req)))
4747

4848
(defn delayed-hello-world-handler
49-
"Alternately, we can use a [core.async](https://github.com/clojure/core.async) goroutine to
49+
"Alternatively, we can use a [core.async](https://github.com/clojure/core.async) goroutine to
5050
create our response, and convert the channel it returns using
5151
`manifold.deferred/->source`, and then take the first message from it. This is entirely equivalent
5252
to the previous implementation."

examples/src/aleph/examples/tcp.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
(s/put! s (str "ERROR: " ex))
150150
(s/close! s)))))))
151151

152-
;; Alternately, we use `manifold.deferred/let-flow` to implement the composition of these
152+
;; Alternatively, we use `manifold.deferred/let-flow` to implement the composition of these
153153
;; asynchronous values. It is certainly more concise, but at the cost of being less explicit.
154154
(defn slow-echo-handler
155155
[f]

src/aleph/http.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
| `ssl-context` | an `io.netty.handler.ssl.SslContext` object, only required if a custom context is required
288288
| `ssl-endpoint-id-alg` | the name of the algorithm to use for SSL endpoint identification (see https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#endpoint-identification-algorithms), defaults to \"HTTPS\". Only used for WSS connections. Pass `nil` to disable endpoint identification.
289289
| `extensions?` | if `true`, the websocket extensions will be supported.
290-
| `sub-protocols` | a string with a comma seperated list of supported sub-protocols.
290+
| `sub-protocols` | a string with a comma separated list of supported sub-protocols.
291291
| `headers` | the headers that should be included in the handshake
292292
| `compression?` | when set to `true`, enables client to use permessage-deflate compression extension, defaults to `false`.
293293
| `pipeline-transform` | an optional function that takes an `io.netty.channel.ChannelPipeline` object, which represents a connection, and modifies it.
@@ -311,7 +311,7 @@
311311
| --- | ---
312312
| `raw-stream?` | if `true`, the connection will emit raw `io.netty.buffer.ByteBuf` objects rather than strings or byte-arrays. This will minimize copying, but means that care must be taken with Netty's buffer reference counting. Only recommended for advanced users.
313313
| `headers` | the headers that should be included in the handshake
314-
| `compression?` | when set to `true`, enables permessage-deflate compression extention support for the connection, defaults to `false`.
314+
| `compression?` | when set to `true`, enables permessage-deflate compression extension support for the connection, defaults to `false`.
315315
| `pipeline-transform` | an optional function that takes an `io.netty.channel.ChannelPipeline` object, which represents a connection, and modifies it.
316316
| `max-frame-payload` | maximum allowable frame payload length, in bytes, defaults to `65536`.
317317
| `max-frame-size` | maximum aggregate message size, in bytes, defaults to `1048576`.
@@ -325,7 +325,7 @@
325325
(defn websocket-ping
326326
"Takes a websocket endpoint (either client or server) and returns a deferred that will
327327
yield true whenever the PONG comes back, or false if the connection is closed. Subsequent
328-
PINGs are supressed to avoid ambiguity in a way that the next PONG trigger all pending PINGs."
328+
PINGs are suppressed to avoid ambiguity in a way that the next PONG trigger all pending PINGs."
329329
([conn]
330330
(ws.common/websocket-ping conn (d/deferred) nil))
331331
([conn d']

src/aleph/http/client.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
(defn exception-handler [ctx ex response-stream]
9898
(log/warn "exception-handler" ex)
9999
(cond
100-
;; could happens when io.netty.handler.codec.http.HttpObjectAggregator
100+
;; could happen when io.netty.handler.codec.http.HttpObjectAggregator
101101
;; is part of the pipeline
102102
(instance? TooLongFrameException ex)
103103
(s/put! response-stream ex)
@@ -336,7 +336,7 @@
336336
(true? ssl?)))
337337
(throw (IllegalArgumentException.
338338
(str "Proxy options given require sending CONNECT request, "
339-
"but `tunnel?' option is set to 'false' explicitely. "
339+
"but `tunnel?' option is set to 'false' explicitly. "
340340
"Consider setting 'tunnel?' to 'true' or omit it at all"))))
341341

342342
(if (non-tunnel-proxy? options')

src/aleph/http/websocket/client.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
(if raw-stream?
191191
(let [body (.content ^TextWebSocketFrame msg)]
192192
;; pass ByteBuf body directly to lower next
193-
;; level. it's their reponsibility to release
193+
;; level. it's their responsibility to release
194194
(netty/put! ch @in body))
195195
(let [text (.text ^TextWebSocketFrame msg)]
196196
(netty/release msg)

src/aleph/http/websocket/server.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
(if raw-stream?
113113
(let [body (.content ^TextWebSocketFrame msg)]
114114
;; pass ByteBuf body directly to next level (it's
115-
;; their reponsibility to release)
115+
;; their responsibility to release)
116116
(netty/put! ch in body))
117117
(let [text (.text ^TextWebSocketFrame msg)]
118118
;; working with text now, so we do not need

src/aleph/netty.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@
11931193
(instance? SslContext ssl-context)
11941194
ssl-context
11951195

1196-
;; in future this option might be interesing
1196+
;; in future this option might be interesting
11971197
;; for turning application config (e.g. ALPN)
11981198
;; depending on the server's capabilities
11991199
(instance? SslContextBuilder ssl-context)

test/aleph/http_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@
12981298
(is (= "Internal Server Error" (bs/to-string (:body resp)))))))
12991299

13001300
(testing "reading invalid request message: bad request"
1301-
;; this request should fail with `IllegalArgumentException` "multiple Content-Lenght headers"
1301+
;; this request should fail with `IllegalArgumentException` "multiple Content-Length headers"
13021302
(with-tcp-request {} ["GET / HTTP/1.1"
13031303
"content-length: 0"
13041304
"content-length: 1"]

0 commit comments

Comments
 (0)