Skip to content

Commit

Permalink
Backmerge main 14 jan 2021 (#831)
Browse files Browse the repository at this point in the history
* Doc: Add outline (#815)

* doc: add categories

* refactor: doc structure refactored

* fix: package-lock.json removed

* refactor: create outline sub-directories

* refactor: rename test to testing

* Update netty-all to 4.1.73.Final (#811)

* Feature: API to modify headers (#824)

* feat(Headers):added new api to update headers

* renamed api

* Feature: Signed Cookie (#751)

* feat(cookie): added secret in cookie

* feat(cookie): added signcookie middleware

* feat(cookie): scalafmt

* fix(cookie): sign cookie while encoding

* scalafmt

* fix(Cookie): added unsign method for cookie

* fix(cookie): minor changes

* fix(signCookieMiddleware: simplified signCookies

* fix(cookie): removed try catch from signContent

* cookie: throw error in verify

* cookie: throw error in verify

* verify method changes

* fixed test cases

* fix: removed decodeResponseSignedCookie

* fix: middlewareSpec

* added modifyheaders in middleware

* removed unwanted changes

* scalafmt

* refactoring

* refactoring

* build fix

* build fix

* fix: decodeResponseCookie

* added modify

* Update sbt-scalafix to 0.9.34 (#805)

* Fix: Echo streaming (#828)

* Failing test

* Fix echo streaming

* Pr Comments

* ZIO 2 support (#809)

* upgrade to zio 2.0.0-RC1

* bump timeout for failing test

* other fixes

* increase timeout

* rejigger broken test

* try, try again

* get compiling & tests passing

Co-authored-by: Kit Langton <kit.langton@gmail.com>

* ZIO2 changes

* scalafmt

* renamed

Co-authored-by: Shubham Girdhar <girdharshubham@hotmail.com>
Co-authored-by: Shruti Verma <62893271+ShrutiVerma97@users.noreply.github.com>
Co-authored-by: John A. De Goes <john@degoes.net>
Co-authored-by: Kit Langton <kit.langton@gmail.com>
  • Loading branch information
5 people authored Jan 15, 2022
1 parent 33c7264 commit 5ead963
Show file tree
Hide file tree
Showing 60 changed files with 247 additions and 11,030 deletions.
4 changes: 4 additions & 0 deletions docs/website/docs/client/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Client",
"position": 4
}
1 change: 1 addition & 0 deletions docs/website/docs/client/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "DSL",
"position": 3
}
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/cookies/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Cookies",
"position": 6
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/cookies/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/headers/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Headers",
"position": 5
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/headers/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/http-data/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "HttpData",
"position": 4
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/http-data/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/http-endpoint/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Endpoint",
"position": 7
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/http-endpoint/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/http/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Http",
"position": 1
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/http/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/middleware/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Middleware",
"position": 9
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/middleware/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/request/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Request",
"position": 2
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/request/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/response/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Response",
"position": 3
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/response/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/server/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Server",
"position": 8
}
3 changes: 3 additions & 0 deletions docs/website/docs/dsl/server/config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Config

Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/dsl/socket/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Socket",
"position": 10
}
1 change: 1 addition & 0 deletions docs/website/docs/dsl/socket/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/examples/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Examples",
"position": 7
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Advanced Examples",
"position": 3
"position": 2
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Basic Examples",
"position": 2
"position": 1
}
3 changes: 2 additions & 1 deletion docs/website/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 1
sidebar_label: "Setup"
---

# Getting Started
Expand Down Expand Up @@ -37,7 +38,7 @@ import zhttp.http._
val a = Http.collect[Request] { case Method.GET -> Root / "a" => Response.ok }
val b = Http.collect[Request] { case Method.GET -> Root / "b" => Response.ok }

val app = a <> b
val app = a ++ b
```

Apps can be composed using the `<>` operator. The way it works is, if none of the routes match in `a` , or a `NotFound` error is thrown from `a`, and then the control is passed on to the `b` app.
Expand Down
4 changes: 4 additions & 0 deletions docs/website/docs/integrations/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Integrations",
"position": 6
}
1 change: 1 addition & 0 deletions docs/website/docs/integrations/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
4 changes: 4 additions & 0 deletions docs/website/docs/testing/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Testing",
"position": 5
}
1 change: 1 addition & 0 deletions docs/website/docs/testing/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Work in progress
Loading

0 comments on commit 5ead963

Please sign in to comment.