Skip to content

Commit

Permalink
Backmerge main 14 jan 2021 (zio#831)
Browse files Browse the repository at this point in the history
* Doc: Add outline (zio#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 (zio#811)

* Feature: API to modify headers (zio#824)

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

* renamed api

* Feature: Signed Cookie (zio#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 (zio#805)

* Fix: Echo streaming (zio#828)

* Failing test

* Fix echo streaming

* Pr Comments

* ZIO 2 support (zio#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 committed Jan 19, 2022
1 parent 979774b commit aa52119
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 125 deletions.
22 changes: 0 additions & 22 deletions docs/website/docs/examples/advanced-examples/cors.md

This file was deleted.

33 changes: 0 additions & 33 deletions docs/website/docs/examples/advanced-examples/stream-file.md

This file was deleted.

37 changes: 0 additions & 37 deletions docs/website/docs/examples/zio-http-basic-examples/https-server.md

This file was deleted.

This file was deleted.

3 changes: 1 addition & 2 deletions example/src/main/scala/example/SignCookies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ object SignCookies extends ZIOAppDefault {
}

// Run it like any simple app
val run =
Server.start(8090, app).exitCode
val run = Server.start(8090, app)
}
9 changes: 1 addition & 8 deletions zio-http/src/main/scala/zhttp/http/Middleware.scala
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
package zhttp.http

import io.netty.handler.codec.http.HttpHeaderNames
import io.netty.util.AsciiString.contentEqualsIgnoreCase
import zhttp.http.CORS.DefaultCORSConfig
import zhttp.http.Headers.BasicSchemeName
import zhttp.http.Middleware.{Flag, RequestP}
import zhttp.http.middleware.Web
import zio._

import java.io.IOException
import java.util.UUID

/**
* Middlewares are essentially transformations that one can apply on any Http to produce a new one. They can modify
* requests and responses and also transform them into more concrete domain entities.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit aa52119

Please sign in to comment.