Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge http4s/http4s main #683

Merged
merged 252 commits into from
May 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
8c3c7f1
Squash more warnings
armanbilge Jul 13, 2021
8fb5d71
Merge branch 'main' into js
armanbilge Jul 29, 2021
70fce65
Merge branch 'main' into js
rossabaker Jul 30, 2021
92e1625
Use ip4s for Server address
armanbilge Jul 31, 2021
32ee5ae
Merge pull request http4s/http4s#4938 from armanbilge/js
rossabaker Aug 6, 2021
9fc3bc4
Fix blaze example
armanbilge Aug 7, 2021
2f5cdae
Merge branch 'series/0.23'
rossabaker Aug 7, 2021
61c253d
Merge pull request http4s/http4s#5037 from http4s/fs2-3.1.0-on-1.0
rossabaker Aug 7, 2021
7f6e7d1
Merge branch 'series/0.23' into merge-oauth
rossabaker Aug 16, 2021
ab2752c
Merge branch 'series/0.23' into merge-oauth
rossabaker Aug 19, 2021
a207f17
Merge branch 'series/0.23' into merge-oauth
rossabaker Aug 30, 2021
9c48afe
Merge pull request http4s/http4s#5065 from http4s/merge-oauth
rossabaker Sep 1, 2021
3ab6865
Implement PR suggestions.
rpiaggio Aug 29, 2021
4032cab
fixing typo in variable name
gokyo Sep 10, 2021
dd91025
Merge pull request http4s/http4s#5101 from rpiaggio/fetch-options
rossabaker Sep 19, 2021
e880e3a
Merge branch 'series/0.23'
rossabaker Sep 19, 2021
3fe22b9
Merge branch 'main' into sanitize-1.0
rossabaker Sep 20, 2021
75a749e
Merge pull request from GHSA-5vcm-3xc3-w7x3
rossabaker Sep 21, 2021
93f0d6b
Merge branch 'series/0.23'
rossabaker Sep 22, 2021
21ad9a9
Merge branch 'series/0.23'
armanbilge Sep 22, 2021
570aaa1
Merge pull request http4s/http4s#5252 from armanbilge/topic/merge-crypto
armanbilge Sep 22, 2021
f253fc8
Merge branch 'series/0.23'
rossabaker Sep 24, 2021
a252aea
Merge pull request http4s/http4s#5269 from http4s/non-trivial-2021-09-23
rossabaker Sep 24, 2021
49ac810
Revert "Put dispatcher shutdown in Try"
armanbilge Sep 29, 2021
ad0c8f8
EC tinkering
armanbilge Sep 29, 2021
26aa4e3
Revert "EC tinkering"
armanbilge Sep 29, 2021
62b6db8
Remove rogue shutdown
armanbilge Sep 29, 2021
ff96cf6
Shutdown correct IORuntime
armanbilge Sep 29, 2021
be23b51
Merge branch 'series/0.23' into feature/0.23-js-rebased
armanbilge Sep 30, 2021
316ff88
Merge pull request http4s/http4s#5298 from armanbilge/feature/0.23-js…
rossabaker Oct 1, 2021
0b4b8c7
Merge branch 'series/0.23' into topic/anticipate-0.23-merge
armanbilge Oct 1, 2021
9fc4002
Merge pull request http4s/http4s#5303 from armanbilge/topic/anticipat…
rossabaker Oct 3, 2021
dd38757
Rename WebSocketBuilder2 back to WebSocketBuilder
rossabaker Oct 4, 2021
95a4dc3
Bring back ProtocolException import in blaze
armanbilge Oct 4, 2021
0cb3b59
Remove custom status reason phrases
rossabaker Oct 4, 2021
a82ac55
Merge pull request http4s/http4s#5327 from http4s/back-to-web-socket-…
rossabaker Oct 6, 2021
0d6f711
Merge pull request http4s/http4s#5329 from http4s/remove-custom-statu…
rossabaker Oct 6, 2021
5969df6
Merge branch 'series/0.22' into series/0.23
rossabaker Oct 6, 2021
bd640b0
Merge branch 'series/0.23'
rossabaker Oct 6, 2021
24cd0f7
Merge pull request http4s/http4s#5336 from http4s/non-trivial-merge-2…
rossabaker Oct 6, 2021
3626e42
Drop 2.12
armanbilge Oct 6, 2021
585cecf
Merge branch 'series/0.22' into series/0.23
rossabaker Oct 7, 2021
82b88c8
Merge branch 'series/0.23'
rossabaker Oct 8, 2021
99e2195
Merge branch 'series/0.22' into series/0.23
rossabaker Oct 11, 2021
bee6b55
Merge branch 'non-trivial-merge-2021-10-11'
rossabaker Oct 11, 2021
6f2029a
Merge pull request http4s/http4s#5366 from http4s/non-trivial-merge-2…
rossabaker Oct 12, 2021
7aee2eb
Merge branch '0.23.6' into non-trivial-merge-2021-10-11-main
rossabaker Oct 12, 2021
fcb256a
Merge branch 'series/0.22' into series/0.23
rossabaker Oct 21, 2021
376ce7d
Refactor IO.blocking
rossabaker Oct 22, 2021
1b440bd
Merge branch 'series/0.23' into non-trivial-merge-2021-10-22-main
rossabaker Oct 22, 2021
40d494f
Merge pull request http4s/http4s#5446 from http4s/non-trivial-merge-2…
rossabaker Oct 23, 2021
338c195
Merge branch 'series/0.22' into series/0.23
rossabaker Oct 26, 2021
e37f460
Merge branch 'series/0.23'
rossabaker Oct 26, 2021
e14a718
scalafmt
rossabaker Oct 26, 2021
a3d4ada
Merge branch 'series/0.23'
rossabaker Oct 26, 2021
4766d28
Merge commit 'a00245957be3da06b88fbfc84f5658e16a65ddf3' into series/0.23
rossabaker Nov 2, 2021
5077b4b
Merge branch 'series/0.22' into series/0.23
rossabaker Nov 2, 2021
dde4812
Remove unused parameter from ExampleService
bplommer Nov 2, 2021
3d6d889
Merge pull request http4s/http4s#5529 from http4s/non-trivial-merge-2…
rossabaker Nov 2, 2021
22a7baa
Merge branch 'series/0.23'
rossabaker Nov 2, 2021
580d7a8
Merge branch 'series/0.23' into non-trivial-2021-11-02-main
rossabaker Nov 3, 2021
0f9feeb
Merge pull request http4s/http4s#5530 from http4s/non-trivial-2021-11…
rossabaker Nov 4, 2021
3949edc
Merge branch 'series/0.22' into series/0.23
rossabaker Nov 5, 2021
ce796f7
use Netty based scaffold
RafalSumislawski Nov 8, 2021
21a0f24
Fix issues with scaffold when using SSL or doing POST requests
RafalSumislawski Nov 8, 2021
8ffbeb7
format
RafalSumislawski Nov 9, 2021
435fb3b
clean up
RafalSumislawski Nov 9, 2021
6925748
Merge branch 'series/0.22' into series/0.23
rossabaker Nov 10, 2021
16ac0cd
Merge pull request http4s/http4s#5557 from http4s/non-trivial-2021-11-10
rossabaker Nov 10, 2021
2a53167
fix warnings when compiling with scala 2.13
RafalSumislawski Nov 15, 2021
d294e12
Merge commit '6476777c170d01521178f0badb088638410a1039' into netty-sc…
RafalSumislawski Nov 16, 2021
3afbf7c
scalafix
RafalSumislawski Nov 16, 2021
819b835
Use MonadCancel in the Http1Writer.write
danicheg Nov 21, 2021
01f9d0b
Scalafix
danicheg Nov 21, 2021
9441f51
avoid converting to InetSocketAddress
RafalSumislawski Nov 21, 2021
e3df105
Merge netty-based ServerScaffold 0.22 to 0.23
RafalSumislawski Nov 21, 2021
ec36d35
Merge branch 'series/0.22' into series/0.23
rossabaker Nov 22, 2021
1a44ce8
Close resources in the BlazeServerSuite
danicheg Nov 30, 2021
02d6a13
Close resources in the JettyServerSuite
danicheg Nov 30, 2021
581fd8a
Change closeable resource to autocloseable
danicheg Nov 30, 2021
58d0f76
Merge pull request http4s/http4s#5635 from danicheg/merge-series/0.22…
rossabaker Dec 1, 2021
ebadc9f
Merge branch 'series/0.22' into merge-series/0.22-into-series/0.23
danicheg Dec 3, 2021
9d82058
Scalafmt
danicheg Dec 3, 2021
4293550
Merge branch 'series/0.23' into merge-series/0.23-into-main
danicheg Dec 5, 2021
247bd46
Merge pull request http4s/http4s#5664 from danicheg/merge-series/0.23…
rossabaker Dec 6, 2021
35b7a1e
Merge branch 'series/0.23' into topic/merge-21-12-07
armanbilge Dec 7, 2021
b571162
Merge pull request http4s/http4s#5673 from armanbilge/topic/merge-21-…
rossabaker Dec 7, 2021
c920e83
Merge remote-tracking branch 'upstream/series/0.23' into netty-scaffo…
RafalSumislawski Dec 7, 2021
3d7c9cf
Merge branch 'series/0.22' into series/0.23
rossabaker Dec 9, 2021
6381cf8
Merge pull request http4s/http4s#5701 from http4s/merge-0.23-2021-12-09
armanbilge Dec 9, 2021
b9ce9ce
Merge branch 'series/0.23'
rossabaker Dec 9, 2021
8d39128
Merge pull request http4s/http4s#5703 from http4s/merge-main-2021-12-09
armanbilge Dec 9, 2021
947db61
Lint fixes
bplommer Dec 10, 2021
6022eda
Fix yet another scaladocs
danicheg Dec 12, 2021
9482a7e
Merge pull request http4s/http4s#5729 from danicheg/series/0.23-block…
danicheg Dec 13, 2021
d327265
Merge branch 'series/0.22' into series/0.23
danicheg Dec 13, 2021
c4f7a78
Fix BlazeClientConnectionReuseSuite
danicheg Dec 13, 2021
b7deef3
Merge pull request http4s/http4s#5730 from danicheg/merge-series/0.22…
danicheg Dec 13, 2021
860abc0
Merge branch 'series/0.23' into main
danicheg Dec 13, 2021
c6de162
Merge pull request http4s/http4s#5734 from danicheg/merge-series/0.23…
danicheg Dec 13, 2021
f05656b
Alter Message Encoding to contain Entity
bplommer Dec 17, 2021
8576ec1
Merge branch 'series/0.22' into series/0.23
danicheg Dec 17, 2021
07b0aa1
Clean up variance-related code
bplommer Dec 17, 2021
65f0c8a
scalafmt
bplommer Dec 17, 2021
3438a5f
Merge pull request http4s/http4s#5753 from danicheg/merge-series/0.22…
armanbilge Dec 17, 2021
f79595e
Merge pull request http4s/http4s#5755 from bplommer/misc-cleanup
bplommer Dec 17, 2021
1e522e1
Merge branch 'series/0.23' into main
danicheg Dec 19, 2021
c2c40f0
Merge pull request http4s/http4s#5759 from danicheg/merge-series/0.23…
bplommer Dec 19, 2021
2e64819
Merge branch 'main' into daventity-slice
bplommer Dec 19, 2021
e898c0b
Merge pull request http4s/http4s#5754 from bplommer/daventity-slice
bplommer Dec 19, 2021
87b90ee
Merge branch 'series/0.22' into series/0.23
danicheg Dec 22, 2021
6b15ca1
Merge pull request http4s/http4s#5778 from danicheg/merge-series/0.22…
danicheg Dec 22, 2021
ab8ab14
Merge branch 'series/0.23' into merge-series/0.23-into-main
danicheg Dec 22, 2021
0d01741
Merge pull request http4s/http4s#5779 from danicheg/merge-series/0.23…
armanbilge Dec 22, 2021
4687b1d
Merge branch 'series/0.22' into series/0.23
danicheg Jan 7, 2022
b6f26b4
Scalafix + Scalafmt
danicheg Jan 7, 2022
ba45594
Fix Http1Connection
danicheg Jan 7, 2022
204cb9b
Scalafmt
danicheg Jan 7, 2022
7b0bf22
Merge pull request http4s/http4s#5833 from danicheg/merge-series/0.22…
rossabaker Jan 9, 2022
2b96813
Merge branch 'series/0.23' into main
danicheg Jan 9, 2022
b3f7dfd
Merge pull request http4s/http4s#5839 from danicheg/merge-series/0.23…
danicheg Jan 9, 2022
b7f5892
Merge remote-tracking branch 'origin/main' into covariant-media-mvp
bplommer Jan 11, 2022
4f40aa1
Merge branch 'series/0.22' into series/0.23
rossabaker Jan 11, 2022
08e2f17
Merge pull request http4s/http4s#5847 from http4s/merge-0.22-2021-01-11
rossabaker Jan 11, 2022
7263f58
BlazeServerBuilder: simplify code. (http4s/http4s#5836)
diesalbla Jan 8, 2022
fd0c126
Refactor some Resource usage
danicheg Jan 16, 2022
ce23dc5
Merge pull request http4s/http4s#5884 from danicheg/resource-refactoring
danicheg Jan 17, 2022
2b3eed8
Merge branch 'series/0.22' into series/0.23
danicheg Jan 17, 2022
adf26d1
Fix BlazeClientBuilderhttp4s/http4s#connectionManager compilation for…
danicheg Jan 17, 2022
805b666
Merge branch 'series/0.23' into main
danicheg Jan 18, 2022
f2d3de9
Merge pull request http4s/http4s#5889 from danicheg/merge-series/0.23…
danicheg Jan 19, 2022
5d898bf
Merge remote-tracking branch 'origin/main' into covariant-media-mvp
bplommer Jan 19, 2022
99ad1c2
Merge branch 'series/0.22' into series/0.23
rossabaker Jan 22, 2022
4a176ef
Update deprecation versions
armanbilge Jan 22, 2022
3c54d88
Merge branch 'series/0.23'
rossabaker Jan 23, 2022
6eea7c2
Replace our TestExecutionContext
rossabaker Jan 25, 2022
a572176
Remove janky thread pool from BlazeHttp1ClientSuite
rossabaker Jan 25, 2022
6ba36a6
Merge branch 'series/0.23' into merge-2022-01-23
rossabaker Jan 25, 2022
8580334
Merge pull request http4s/http4s#5945 from http4s/remove-janky-thread…
rossabaker Jan 25, 2022
2cf800a
Merge branch 'resourcify-blaze-client' into series/0.23
rossabaker Jan 27, 2022
c4eb492
scalafmt
rossabaker Jan 27, 2022
f960c63
This race got lost in the merge
rossabaker Jan 28, 2022
2c1e3ce
Unify the timeout handling a bit more
rossabaker Jan 28, 2022
3424290
Use the Retry middleware
rossabaker Jan 28, 2022
b81bea5
Merge branch 'series/0.22' into merge-0.22-2022-01-27
rossabaker Jan 28, 2022
ee71272
Merge branch 'main' into topic/drop-2.12
armanbilge Feb 1, 2022
a084797
Merge branch 'series/0.23' into integrate/0.23-main-220201
armanbilge Feb 2, 2022
8817077
Merge pull request http4s/http4s#5986 from armanbilge/integrate/0.23-…
rossabaker Feb 2, 2022
ac63314
Merge branch 'main' into topic/drop-2.12
armanbilge Feb 3, 2022
4e0300d
Remove Request.InvariantOps
armanbilge Feb 4, 2022
dc32b98
Merge pull request http4s/http4s#1 from armanbilge/covariant-media-mvp
bplommer Feb 6, 2022
bc8d7ae
Merge branch 'main' into covariant-media-mvp
armanbilge Feb 6, 2022
87cfa18
Merge branch 'series/0.22' into integration/0.22-0.23-220208
armanbilge Feb 9, 2022
2171da0
Merge pull request http4s/http4s#6031 from armanbilge/integration/0.2…
rossabaker Feb 9, 2022
a233965
Fix compile
armanbilge Feb 13, 2022
e25b89f
Merge branch 'series/0.23'
armanbilge Feb 17, 2022
3ac5541
Message: add a "pipeBodyBy" combinator.
diesalbla Feb 6, 2022
ee6389a
Optimize Http1Writer for cases when the entity is Empty or Strict
wjoel Mar 2, 2022
baa172c
Merge pull request http4s/http4s#6080 from wjoel/strict-encoder
rossabaker Mar 3, 2022
204f196
Collect entity from parser, support Entity.Strict and Empty
wjoel Mar 6, 2022
454d368
Avoid draining body on error/cancel for Entity.Strict and Empty
wjoel Mar 7, 2022
092b67e
Optimize CachingChunkWriter for Chunk.empty case
wjoel Mar 8, 2022
a8502e7
Update blaze-core/src/main/scala/org/http4s/blazecore/util/Http1Write…
rossabaker Mar 8, 2022
1600e30
Update blaze-client/src/main/scala/org/http4s/blaze/client/Http1Conne…
rossabaker Mar 8, 2022
96007ff
Merge pull request http4s/http4s#6011 from diesalbla/add_alterBodyby
rossabaker Mar 8, 2022
c43f79a
Merge pull request http4s/http4s#6091 from wjoel/no-drain-if-strict
rossabaker Mar 8, 2022
9de80d7
Merge branch 'series/0.22' into series/0.23
rossabaker Mar 8, 2022
18fb98e
Add micro-opts for CachingChunkWriter
danicheg Mar 8, 2022
bbb7c04
Merge pull request http4s/http4s#6096 from danicheg/caching-chunk-writer
rossabaker Mar 9, 2022
338eb9c
Merge pull request http4s/http4s#6094 from rossabaker/merge-0.22-2022…
rossabaker Mar 10, 2022
f54f151
Remove unused ExecutionContexts in blaze-core
rossabaker Mar 10, 2022
666d3fe
Merge branch 'series/0.23' into main
danicheg Mar 10, 2022
7b54e5d
Scalafmt
danicheg Mar 10, 2022
e11a9b5
Merge pull request http4s/http4s#6101 from danicheg/merge-series/0.23…
rossabaker Mar 10, 2022
4c0ae8f
Rm deprecated BlazeClientBuilder
danicheg Mar 11, 2022
ad6a915
Merge pull request http4s/http4s#6090 from wjoel/entity-from-parser
danicheg Mar 11, 2022
8f6b990
Merge pull request http4s/http4s#6100 from rossabaker/blaze-core-ec
rossabaker Mar 13, 2022
d241513
Further reduce ExecutionContexts in blaze
rossabaker Mar 13, 2022
d8087a7
Merge pull request http4s/http4s#6109 from danicheg/blaze-client-rm-d…
rossabaker Mar 13, 2022
7ba31c5
Rename XCompat to ParasiticExecutionContextCompat
rossabaker Mar 13, 2022
26a3c8e
Merge branch 'series/0.23'
rossabaker Mar 14, 2022
70b4094
Clean up parasitic compatibity traits
rossabaker Mar 14, 2022
d1302cc
Merge branch 'series/0.22' into series/0.23
armanbilge Mar 14, 2022
1979a29
Refactor the EntityBodyWriter.writeEntityBody
danicheg Mar 14, 2022
392a5bf
Rm redundant .drain in the BodylessWriter
danicheg Mar 14, 2022
742f7da
Merge branch 'series/0.23'
armanbilge Mar 18, 2022
8ec5fa2
Merge branch 'series/0.22' into series/0.23
danicheg Mar 18, 2022
9559f7d
Use parasitic EC in the blaze for Scala 2.13
danicheg Mar 18, 2022
c69dff4
Merge pull request http4s/http4s#6141 from armanbilge/merge-0.23-main…
rossabaker Mar 18, 2022
774fe8d
Merge pull request http4s/http4s#6145 from danicheg/blaze-ec
armanbilge Mar 18, 2022
d860d4c
Merge pull request http4s/http4s#6143 from danicheg/merge-series/0.22…
rossabaker Mar 18, 2022
e708df8
Merge branch 'main' into merge-0.23-20220314
rossabaker Mar 19, 2022
30168e8
Touch up imports
rossabaker Mar 19, 2022
5fb2caa
Merge main branch
danicheg Mar 19, 2022
09f5685
Refactor the DumpingWriter
danicheg Mar 19, 2022
02c4f49
Write end chunk for Strict entity
danicheg Mar 20, 2022
ff76988
Remove unused EntityBodyWriter.wroteHeader
danicheg Mar 20, 2022
91cf09e
Merge pull request http4s/http4s#6130 from danicheg/entity-body-writer
rossabaker Mar 21, 2022
af28b0e
Merge pull request http4s/http4s#6160 from danicheg/entity-body-write…
danicheg Mar 21, 2022
9705ce5
Merge branch 'series/0.22' into series/0.23
rossabaker Mar 24, 2022
3467e96
Merge branch 'series/0.22' into merge-0.22-2022-03-23
rossabaker Mar 24, 2022
f3e37b5
Deprecate blaze TrustingSslContext
rossabaker Mar 24, 2022
65e5cb1
Move WebSocketHandshake to blaze-core
rossabaker Mar 25, 2022
a79d152
Document the use of the execution context passed to the blaze builders.
Mar 9, 2022
5635393
Format BlazeServerBuilder
Mar 9, 2022
6f28a24
Clarify docs for BlazeServerBuilder.withExecutionContext
Mar 15, 2022
009e519
Add missing tuple
rossabaker Mar 25, 2022
b0a69af
Merge pull request http4s/http4s#6098 from zainab-ali/blaze-builder-e…
rossabaker Mar 25, 2022
dfe5033
Merge pull request http4s/http4s#6183 from rossabaker/web-socket-hand…
rossabaker Mar 25, 2022
640516a
Merge branch 'series/0.23' into merge-0.22-2022-03-23
rossabaker Mar 25, 2022
6564c8a
Merge pull request http4s/http4s#6178 from rossabaker/merge-0.22-2022…
rossabaker Mar 25, 2022
09f4693
Merge branch 'series/0.22' into series/0.23
rossabaker Mar 27, 2022
4c5e276
Merge branch 'series/0.23'
rossabaker Mar 27, 2022
ba4cfff
Merge remote-tracking branch 'origin/main' into covariant-media-mvp
bplommer Mar 27, 2022
6b028fe
Remove vestigial ParasiticExecutionContextCompat
rossabaker Mar 27, 2022
703cc8e
Simplify TrustingSslContext in test
rossabaker Mar 27, 2022
e0d8f0c
Merge branch 'series/0.22' into series/0.23
rossabaker Mar 27, 2022
b864ffc
Merge pull request http4s/http4s#6182 from rossabaker/remove-trusting…
rossabaker Mar 27, 2022
08e5293
Merge branch 'series/0.23' into merge-0.23-20220326
rossabaker Mar 27, 2022
151b5d0
Merge pull request http4s/http4s#6196 from rossabaker/merge-0.22-2022…
rossabaker Mar 28, 2022
11ce4d4
Use `guarantee` on failed request clean-up in the blaze
danicheg Mar 28, 2022
b02371d
Scalafmt
danicheg Mar 28, 2022
0b31e75
Use in the Http1Connection
danicheg Mar 30, 2022
200df89
Remove http4s-crypto from blaze-core
rossabaker Apr 2, 2022
0217193
Merge branch 'series/0.23' into merge-0.23-20220326
rossabaker Apr 2, 2022
2cc1212
Merge branch 'series/0.22' into series/0.23
rossabaker Apr 2, 2022
8937475
Refactor the Http1Connection.receiveResponse
danicheg Apr 2, 2022
14ff691
Merge pull request http4s/http4s#6227 from rossabaker/merge-0.22-2022…
rossabaker Apr 3, 2022
6517461
Merge branch 'series/0.23'
armanbilge Apr 5, 2022
61c6987
Merge pull request http4s/http4s#6250 from armanbilge/integration/0.2…
rossabaker Apr 5, 2022
f97ac72
Merge pull request http4s/http4s#5712 from bplommer/covariant-media-mvp
armanbilge Apr 7, 2022
b97e23e
Merge branch 'series/0.22' into series/0.23
danicheg Apr 10, 2022
3014d3e
Scalafmt
danicheg Apr 10, 2022
71b579a
Fix ExampleService
danicheg Apr 10, 2022
a03c7c8
Merge branch 'series/0.23' into main
danicheg Apr 10, 2022
164b123
Remove deprecated blaze SSLContextFactory
danicheg Apr 14, 2022
2e409e0
Merge pull request http4s/http4s#6295 from danicheg/ssl-factory
rossabaker Apr 15, 2022
dad5224
Remove EmptyBody
danicheg Apr 15, 2022
3136a5f
Merge pull request http4s/http4s#6296 from danicheg/empty-body
rossabaker Apr 16, 2022
a5d262a
Tweak unused args suppressing
danicheg Apr 16, 2022
dd0e30f
Make Part and Multipart covariant.
diesalbla Apr 17, 2022
8445c3f
Merge pull request http4s/http4s#6300 from danicheg/unused-args
danicheg Apr 19, 2022
b2c4254
Merge branch 'series/0.22' into series/0.23
armanbilge Apr 29, 2022
54a855c
Merge pull request http4s/http4s#6343 from armanbilge/integration/0.2…
danicheg Apr 29, 2022
4f31ddf
Merge branch 'series/0.23' into main
danicheg Apr 30, 2022
1c6e9d8
Merge remote-tracking branch 'core/filtered'
rossabaker May 26, 2022
557fa92
Base version is 1.0
rossabaker May 26, 2022
6cf8889
Remove tlMimaPreviousVersions from 0.23
rossabaker May 26, 2022
84342ad
Drop Scala 2.12
rossabaker May 26, 2022
1106ba1
Update to http4s-1.0.0-M33
rossabaker May 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
scala: [3.1.2, 2.12.15, 2.13.8]
scala: [3.1.2, 2.13.8]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -160,16 +160,6 @@ jobs:
tar xf targets.tar
rm targets.tar

- name: Download target directories (2.12.15)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.15

- name: Inflate target directories (2.12.15)
run: |
tar xf targets.tar
rm targets.tar

- name: Download target directories (2.13.8)
uses: actions/download-artifact@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ import scala.concurrent.duration._
* be borrowed. Helps deal with connections that are closed while
* idling in the pool for an extended period.
*/
sealed abstract class BlazeClientBuilder[F[_]] private (
final class BlazeClientBuilder[F[_]] private (
val responseHeaderTimeout: Duration,
val idleTimeout: Duration,
val requestTimeout: Duration,
Expand Down Expand Up @@ -100,56 +100,6 @@ sealed abstract class BlazeClientBuilder[F[_]] private (

protected final val logger: Logger = getLogger(this.getClass)

@deprecated("Preserved for binary compatibility", "0.23.8")
private[BlazeClientBuilder] def this(
responseHeaderTimeout: Duration,
idleTimeout: Duration,
requestTimeout: Duration,
connectTimeout: Duration,
userAgent: Option[`User-Agent`],
maxTotalConnections: Int,
maxWaitQueueLimit: Int,
maxConnectionsPerRequestKey: RequestKey => Int,
sslContext: SSLContextOption,
checkEndpointIdentification: Boolean,
maxResponseLineSize: Int,
maxHeaderLength: Int,
maxChunkSize: Int,
chunkBufferMaxSize: Int,
parserMode: ParserMode,
bufferSize: Int,
executionContextConfig: ExecutionContextConfig,
scheduler: Resource[F, TickWheelExecutor],
asynchronousChannelGroup: Option[AsynchronousChannelGroup],
channelOptions: ChannelOptions,
customDnsResolver: Option[RequestKey => Either[Throwable, InetSocketAddress]],
F: Async[F],
) = this(
responseHeaderTimeout = responseHeaderTimeout,
idleTimeout = idleTimeout,
requestTimeout = requestTimeout,
connectTimeout = connectTimeout,
userAgent = userAgent,
maxTotalConnections = maxTotalConnections,
maxWaitQueueLimit = maxWaitQueueLimit,
maxConnectionsPerRequestKey = maxConnectionsPerRequestKey,
sslContext = sslContext,
checkEndpointIdentification = checkEndpointIdentification,
maxResponseLineSize = maxResponseLineSize,
maxHeaderLength = maxHeaderLength,
maxChunkSize = maxChunkSize,
chunkBufferMaxSize = chunkBufferMaxSize,
parserMode = parserMode,
bufferSize = bufferSize,
executionContextConfig = executionContextConfig,
scheduler = scheduler,
asynchronousChannelGroup = asynchronousChannelGroup,
channelOptions = channelOptions,
customDnsResolver = customDnsResolver,
retries = 0,
maxIdleDuration = Duration.Inf,
)(F)

private def copy(
responseHeaderTimeout: Duration = responseHeaderTimeout,
idleTimeout: Duration = idleTimeout,
Expand Down Expand Up @@ -200,7 +150,7 @@ sealed abstract class BlazeClientBuilder[F[_]] private (
customDnsResolver = customDnsResolver,
retries = retries,
maxIdleDuration = maxIdleDuration,
) {}
)

@deprecated(
"Do not use - always returns cats.effect.unsafe.IORuntime.global.compute." +
Expand Down Expand Up @@ -467,7 +417,7 @@ object BlazeClientBuilder {
customDnsResolver = None,
retries = 2,
maxIdleDuration = Duration.Inf,
) {}
)

@deprecated(
"Most users should use the default execution context provided. " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,25 +101,4 @@ private object ConnectionManager {
maxIdleDuration,
)
}

@deprecated("Preserved for binary compatibility", "0.23.8")
def pool[F[_]: Async, A <: Connection[F]](
builder: ConnectionBuilder[F, A],
maxTotal: Int,
maxWaitQueueLimit: Int,
maxConnectionsPerRequestKey: RequestKey => Int,
responseHeaderTimeout: Duration,
requestTimeout: Duration,
executionContext: ExecutionContext,
): F[ConnectionManager.Stateful[F, A]] =
pool(
builder,
maxTotal,
maxWaitQueueLimit,
maxConnectionsPerRequestKey,
responseHeaderTimeout,
requestTimeout,
executionContext,
Duration.Inf,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private final class Http1Connection[F[_]](
}

val writeRequest: F[Boolean] = getChunkEncoder(req, mustClose, rr)
.write(rr, req.body)
.write(rr, req.entity)
.onError {
case EOF => F.delay(shutdownWithError(EOF))
case t =>
Expand Down Expand Up @@ -337,14 +337,14 @@ private final class Http1Connection[F[_]](
val status: Status = parser.getStatus()
val httpVersion: HttpVersion = parser.getHttpVersion()

val (attributes, body): (Vault, EntityBody[F]) = if (doesntHaveBody) {
val (attributes, entity): (Vault, Entity[F]) = if (doesntHaveBody) {
// responses to HEAD requests do not have a body
cleanUpAfterReceivingResponse(closeOnFinish, headers)
(Vault.empty, EmptyBody)
(Vault.empty, Entity.Empty)
} else {
// We are to the point of parsing the body and then cleaning up
val (rawBody, _): (EntityBody[F], () => Future[ByteBuffer]) =
collectBodyFromParser(buffer, onEofWhileReadingBody _)
val (rawEntity, _): (Entity[F], () => Future[ByteBuffer]) =
collectEntityFromParser(buffer, onEofWhileReadingBody _)

// to collect the trailers we need a cleanup helper and an effect in the attribute map
val (trailerCleanup, attributes): (() => Unit, Vault) =
Expand All @@ -371,9 +371,9 @@ private final class Http1Connection[F[_]](
if (parser.contentComplete()) {
trailerCleanup()
cleanUpAfterReceivingResponse(closeOnFinish, headers)
attributes -> rawBody
attributes -> rawEntity
} else
attributes -> rawBody.onFinalizeCaseWeak {
attributes -> Entity(rawEntity.body.onFinalizeCaseWeak {
case ExitCase.Succeeded =>
F.delay { trailerCleanup(); cleanUpAfterReceivingResponse(closeOnFinish, headers); }
.evalOn(executionContext)
Expand All @@ -382,7 +382,7 @@ private final class Http1Connection[F[_]](
trailerCleanup(); cleanUpAfterReceivingResponse(closeOnFinish, headers);
stageShutdown()
}.evalOn(executionContext)
}
})
}

cb(
Expand All @@ -391,7 +391,12 @@ private final class Http1Connection[F[_]](
status = status,
httpVersion = httpVersion,
headers = headers,
body = body.interruptWhen(idleTimeoutS),
entity = entity match {
case Entity.Default(body, length) =>
Entity[F](body.interruptWhen(idleTimeoutS), length)
case Entity.Strict(_) | Entity.Empty =>
entity
},
attributes = attributes,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import cats.effect.std.Semaphore
import cats.effect.syntax.all._
import cats.syntax.all._
import org.http4s.client.RequestKey
import org.http4s.internal.CollectionCompat
import org.log4s.getLogger

import java.time.Instant
Expand Down Expand Up @@ -52,29 +51,6 @@ private final class PoolManager[F[_], A <: Connection[F]](
)(implicit F: Async[F])
extends ConnectionManager.Stateful[F, A] { self =>

@deprecated("Preserved for binary compatibility", "0.23.8")
private[PoolManager] def this(
builder: ConnectionBuilder[F, A],
maxTotal: Int,
maxWaitQueueLimit: Int,
maxConnectionsPerRequestKey: RequestKey => Int,
responseHeaderTimeout: Duration,
requestTimeout: Duration,
semaphore: Semaphore[F],
executionContext: ExecutionContext,
F: Async[F],
) = this(
builder,
maxTotal,
maxWaitQueueLimit,
maxConnectionsPerRequestKey,
responseHeaderTimeout,
requestTimeout,
semaphore,
executionContext,
Duration.Inf,
)(F)

private sealed case class PooledConnection(conn: A, borrowDeadline: Option[Deadline])

private sealed case class Waiting(
Expand Down Expand Up @@ -444,7 +420,7 @@ private final class PoolManager[F[_], A <: Connection[F]](
def isClosed: F[Boolean] = F.delay(self.isClosed)
def allocated: F[Map[RequestKey, Int]] = F.delay(self.allocated.toMap)
def idleQueueDepth: F[Map[RequestKey, Int]] =
F.delay(CollectionCompat.mapValues(self.idleQueues.toMap)(_.size))
F.delay(self.idleQueues.toMap.view.mapValues(_.size).toMap)
def waitQueueDepth: F[Int] = F.delay(self.waitQueue.size)
}
}
Expand Down
25 changes: 0 additions & 25 deletions blaze-client/src/main/scala/org/http4s/client/blaze/package.scala

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ class BlazeClient213Suite extends BlazeClientBase {
client.expect[String](h)
}

val sucessRequests =
val successfulRequests =
(1 to Runtime.getRuntime.availableProcessors * 5).toList.parTraverse { _ =>
val h = successHosts(Random.nextInt(successHosts.length))
client.expect[String](h).map(_.nonEmpty)
}

val allRequests = for {
_ <- failedRequests.handleErrorWith(_ => IO.unit).replicateA(5)
r <- sucessRequests
r <- successfulRequests
} yield r

allRequests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ package client
import cats.effect._
import cats.effect.kernel.Resource
import cats.effect.std.Dispatcher
import cats.syntax.all._
import cats.implicits.catsSyntaxApplicativeId
import cats.syntax.all._
import fs2.Stream
import io.netty.channel.ChannelHandlerContext
import io.netty.handler.codec.http.HttpMethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class ClientTimeoutSuite extends CatsEffectSuite with DispatcherIOFixture {
case (tickWheel, dispatcher) =>
// Sending request body hangs so the idle timeout will kick-in after 1s and interrupt the request
val body = Stream.emit[IO, Byte](1.toByte) ++ Stream.never[IO]
val req = Request(method = Method.POST, uri = www_foo_com, body = body)
val req = Request(method = Method.POST, uri = www_foo_com, entity = Entity(body))
val h = new SlowTestHead(Seq(mkBuffer(resp)), 3.seconds, tickWheel)
val c = mkClient(h, tickWheel, dispatcher)(idleTimeout = 1.second)

Expand All @@ -155,7 +155,7 @@ class ClientTimeoutSuite extends CatsEffectSuite with DispatcherIOFixture {
(for {
_ <- IO.unit
body = Stream.emit[IO, Byte](1.toByte) ++ Stream.never[IO]
req = Request(method = Method.POST, uri = www_foo_com, body = body)
req = Request(method = Method.POST, uri = www_foo_com, entity = Entity(body))
q <- Queue.unbounded[IO, Option[ByteBuffer]]
h = new QueueTestHead(q)
(f, b) = resp.splitAt(resp.length - 1)
Expand All @@ -176,7 +176,7 @@ class ClientTimeoutSuite extends CatsEffectSuite with DispatcherIOFixture {
.fixedRate[IO](500.millis)
.take(3)
.mapChunks(_ => Chunk.array(Array.fill(chunkBufferMaxSize + 1)(1.toByte)))
val req = Request(method = Method.POST, uri = www_foo_com, body = body)
val req = Request(method = Method.POST, uri = www_foo_com, entity = Entity(body))
val h = new SlowTestHead(Seq(mkBuffer(resp)), 2000.millis, tickWheel)
val c = mkClient(h, tickWheel, dispatcher)(idleTimeout = 1.second)

Expand Down

This file was deleted.

This file was deleted.

Loading