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

Back merge main 9 feb 2022 #990

Merged
merged 96 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
0ffb4d6
Doc: Add outline (#815)
girdharshubham Jan 12, 2022
6410f7e
Update netty-all to 4.1.73.Final (#811)
d11-amitsingh Jan 12, 2022
3a34823
Disable benchmarks comment on fork pull request (#820)
d11-amitsingh Jan 13, 2022
66a1dea
Feature: API to modify headers (#824)
ShrutiVerma97 Jan 13, 2022
143ad28
Feature: Signed Cookie (#751)
ShrutiVerma97 Jan 13, 2022
67650c2
Update sbt-scalafix to 0.9.34 (#805)
d11-amitsingh Jan 13, 2022
64a8f4a
Fix: Echo streaming (#828)
d11-amitsingh Jan 14, 2022
72d71d3
Docs: Update Basic Examples (#814)
ShrutiVerma97 Jan 14, 2022
569bd1d
docs: update advanced examples (#816)
ShrutiVerma97 Jan 14, 2022
fa47791
maintenance: semanticdb revision usage (#832)
girdharshubham Jan 14, 2022
10df2c6
maintenance: workflow scala version (#833)
girdharshubham Jan 14, 2022
9c77c03
Fix: HasHeader bug (#835)
gciuloaica Jan 15, 2022
9ee2048
refactor: fix naming for Http operators (#839)
Jan 15, 2022
3c56a90
Update sbt-bloop to 1.4.12 (#810)
d11-amitsingh Jan 15, 2022
da7c459
Update scala-library to 2.13.8 (#801)
d11-amitsingh Jan 15, 2022
dfd11ac
Add configuration builder methods to zhttp.service.Server (#768)
jgoday Jan 15, 2022
134a9b5
maintenance: html template for internal server error string (#851)
girdharshubham Jan 18, 2022
13c7d2b
Performance: Improve benchmarking code (#731)
Jan 18, 2022
e9abd9f
Refactor: Support middlewares on Http (#773)
Jan 18, 2022
9fc4f40
refactor: rename ClientParams to ClientRequest (#856)
Jan 20, 2022
3b9ea3a
refactor: use declarative encoding for http.middleware (#869)
brendo-m Jan 21, 2022
ecc3d8a
Move docs to v1.x directory (#861)
d11-amitsingh Jan 21, 2022
b9784ac
Bug Add host in client from absolute URL (#847)
D11Kaushik Jan 21, 2022
a36afbc
Doc website fix (#871)
d11-amitsingh Jan 21, 2022
bcbcdd3
Update scala3-library to 3.1.1 (#873)
d11-amitsingh Jan 21, 2022
9e8544c
Doc: Fix getting started link (#874)
d11-amitsingh Jan 21, 2022
a870231
Update scalafmt-core to 3.3.2 (#864)
d11-amitsingh Jan 21, 2022
bdae5cf
Doc: `Headers` documentation (#817)
gciuloaica Jan 21, 2022
786f51a
Fix collapsible Headers Doc (#876)
d11-amitsingh Jan 22, 2022
9fbabe5
Test: Added Integration tests for `HExit.Success` (#852)
zsfVishnu-d11 Jan 24, 2022
0d59e4c
Update scalafmt-core to 3.3.3 (#881)
scala-steward Jan 24, 2022
e4d7424
Update scalafmt-core to 3.3.3 (#884)
d11-amitsingh Jan 24, 2022
0ee6dde
Fix: EncodeClientParams (#868)
ShrutiVerma97 Jan 24, 2022
dc0d80f
Refactor: HttpRunnableSpec clean up (#857)
Jan 25, 2022
6850897
update doc (#897)
Jan 26, 2022
14320ef
Docs: Getting started (#887)
ShrutiVerma97 Jan 26, 2022
fe4424e
refactor: rename asString to encode in URI (#898)
Jan 26, 2022
9d30a44
refactor: rename asString to encode in Scheme (#904)
Jan 26, 2022
470206b
fix: example links (#906)
ShrutiVerma97 Jan 26, 2022
23011a9
Update getting-started.md (#907)
d11-amitsingh Jan 26, 2022
d58857c
refactor: rename asString to encode in Scheme (#905)
Jan 26, 2022
f75030c
Doc: setup (#886)
girdharshubham Jan 26, 2022
5e714e0
Update netty-incubator-transport-native-io_uring to 0.0.12.Final (#908)
scala-steward Jan 27, 2022
b656936
Documentation for Server (#885)
sumawa Jan 27, 2022
594d8cb
Performance: Improve performance of `collectM` (#882)
Jan 27, 2022
b54e935
Doc: Added <> operator in getting started (#910)
ShrutiVerma97 Jan 27, 2022
8e73e9e
feature: Add `collectManaged` to Http (#909)
beem812 Jan 27, 2022
0a3d486
feature: add `echo` operator to `Socket` (#900)
Jan 27, 2022
cfa6c3e
feature: add `Socket.empty` (#901)
Jan 27, 2022
36f8c83
feature: add `toHttp` to Socket.scala (#902)
Jan 27, 2022
fc8b9b5
refactor: merge Request for Client and Server (#894)
Jan 27, 2022
91db176
Revert "refactor: merge Request for Client and Server (#894)" (#915)
Jan 28, 2022
d88c0c4
Feature: add `toHttp` to Response (#903)
Jan 28, 2022
4e2d48c
Update scalafmt-core to 3.4.0 (#920)
d11-amitsingh Feb 1, 2022
7d5a80f
Update sbt to 1.6.2 (#931)
scala-steward Feb 1, 2022
d8b0143
Remove outdated benchmark.md (#940)
ShrutiVerma97 Feb 1, 2022
120450b
refactor: rename `getHeaders` to `headers` in `ClientRequest` (#928)
Feb 1, 2022
aec7382
Refactor: rename `asString` to `encode` in `Path` (#927)
Feb 1, 2022
21cdee6
Disable flow Control (#854)
d11-amitsingh Feb 1, 2022
b192d89
Add builder pattern for URL (#930)
beem812 Feb 2, 2022
c1a306e
Documentation: Http (#888)
dinojohn Feb 2, 2022
456d198
feature: add `Http.apply` (#949)
Feb 3, 2022
95cddc3
Refactor: Drop `toZIO` and `wrapZIO` APIs (#950)
Feb 3, 2022
7873444
Fix: Server KeepAlive true by default and enable client to set Http v…
sumawa Feb 3, 2022
ad3cf22
feat: url add `isAbsolute` and `isRelative` operators (#946)
Feb 3, 2022
3a7e14f
WebSocket Client Support (#933)
tusharmath Feb 4, 2022
ef63c23
Documentation: Request (#926)
ShrutiVerma97 Feb 4, 2022
f396f17
Fix ssl issue due to missing peer host port hint (#952)
d11-amitsingh Feb 5, 2022
e514484
feature: add connect operator on Socket (#955)
tusharmath Feb 5, 2022
6e9c007
Style: Update scala doc wrapping (#959)
tusharmath Feb 5, 2022
b679318
remove get prefix (#958)
tusharmath Feb 5, 2022
136de3e
Update scalafmt-core to 3.4.1 (#960)
scala-steward Feb 6, 2022
2455df1
Update scalafmt-core to 3.4.2 (#962)
scala-steward Feb 6, 2022
e6925b2
Update scalafmt-core to 3.4.2 (#961)
d11-amitsingh Feb 6, 2022
c2ed52e
remove declarative API (#957)
tusharmath Feb 7, 2022
88e2c70
Update sbt-updates to 0.6.2 (#966)
scala-steward Feb 8, 2022
047944f
Doc: Readme (#970)
ShrutiVerma97 Feb 8, 2022
d3fa639
style: rearrange methods in files (#963)
tusharmath Feb 8, 2022
5e4a0cf
Doc: Cookie (#974)
ShrutiVerma97 Feb 8, 2022
b538a1d
refactor: drop `CanBeSilent` type-constraint from Http (#964)
tusharmath Feb 8, 2022
d1d917c
Feature: add `Version` (#965)
tusharmath Feb 8, 2022
ab96fdb
Fix: Fire response instead of error in HExit.Failure() (#980)
dinojohn Feb 8, 2022
9c9fd5e
fix: typo in bug_report.md (#981)
dinojohn Feb 8, 2022
2a73a95
Update netty-all to 4.1.74.Final (#982)
scala-steward Feb 9, 2022
0c0fda2
refactor: remove sealed modifier from Middleware trait (#984)
tusharmath Feb 9, 2022
4b760b4
refactor: rename method on Client (#985)
tusharmath Feb 9, 2022
7660b9c
ZIO 2 support (#809)
jdegoes Jan 13, 2022
bbcffb6
Backmerge main 14 jan 2021 (#831)
d11-amitsingh Jan 15, 2022
ade0980
Enable snapshot versioning for ZIO-2/series (#844)
d11-amitsingh Jan 17, 2022
1ba6ac0
ZIO 2: Latest changes from main (#858)
jdegoes Jan 19, 2022
f1e182a
upgrade zio version (#942)
adamgfraser Feb 2, 2022
9f4acc5
zio2 support
amitksingh1490 Feb 9, 2022
f3bb049
backmerge
amitksingh1490 Feb 9, 2022
92a8c3b
use default runtime strategy
amitksingh1490 Feb 9, 2022
0a7d106
use unsafeRunUninterruptible in client
amitksingh1490 Feb 9, 2022
f732acf
use sticky on Server
amitksingh1490 Feb 9, 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
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ assignees: ''
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
Steps to reproduce the behaviour:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
**Expected behaviour**
A clear and concise description of what you expected to happen.

**Screenshots**
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.15, 2.13.8, 3.1.0]
scala: [2.12.15, 2.13.8, 3.1.1]
java: [graal_21.1.0@11, temurin@8]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -143,12 +143,12 @@ jobs:
tar xf targets.tar
rm targets.tar

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

- name: Inflate target directories (3.1.0)
- name: Inflate target directories (3.1.1)
run: |
tar xf targets.tar
rm targets.tar
Expand Down
3 changes: 2 additions & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.3.1
version = 3.4.2
maxColumn = 120

align.preset = more
Expand All @@ -24,3 +24,4 @@ newlines.afterInfix = keep
rewrite.rules = [RedundantParens]
trailingCommas = "always"
runner.dialect = Scala213Source3
docstrings.wrapMaxColumn = 80
232 changes: 0 additions & 232 deletions BENCHMARKS.md

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Check out the full documentation here: [Documentation]
- [ZIO Http](#zio-http)
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Benchmarks](#benchmarks)
- [Documentation](https://dream11.github.io/zio-http/)

# Getting Started
Expand All @@ -35,7 +34,7 @@ import zhttp.service.Server

object HelloWorld extends ZIOAppDefault {
val app = Http.collect[Request] {
case Method.GET -> Root / "text" => Response.text("Hello World!")
case Method.GET -> !! / "text" => Response.text("Hello World!")
}

val run =
Expand Down Expand Up @@ -69,7 +68,7 @@ libraryDependencies += "io.d11" %% "zhttp" % "[version]"
libraryDependencies += "io.d11" %% "zhttp-test" % "[version]" % Test
```

**NOTE:** Currently ZIO Http is compatible with `ZIO 1.x` only. The library will migrate to `ZIO 2.x` as soon as a stable release is published.
**NOTE:** ZIO Http is compatible with `ZIO 1.x` and `ZIO 2.x`.


# Watch Mode
Expand Down
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,11 @@ lazy val zhttp = (project in file("zio-http"))
.settings(
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
libraryDependencies ++= Seq(
sttp,
netty,
`zio`,
`zio-streams`,
`zio-test`,
`zio-test-sbt`,
`sttp-zio`,
`netty-incubator`,
`scala-compact-collection`,
),
Expand All @@ -128,6 +126,6 @@ lazy val zhttpTest = (project in file("zio-http-test"))
lazy val example = (project in file("./example"))
.settings(stdSettings("example"))
.settings(publishSetting(false))
.settings(runSettings("example.FileStreaming"))
.settings(runSettings("example.Main"))
.settings(libraryDependencies ++= Seq(`jwt-core`))
.dependsOn(zhttp)

This file was deleted.

Loading