Skip to content

Commit

Permalink
Add missing case on the Method implementation
Browse files Browse the repository at this point in the history
This prevents automatic derivation (the `zio-test` `DeriveGen.gen[Method]` one for example) to derive instance of `Method`
  • Loading branch information
guizmaii committed Aug 19, 2024
1 parent 283934e commit ff854bb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions zio-http/shared/src/main/scala/zio/http/Method.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ object Method {

final case class CUSTOM(name: String) extends Method

object OPTIONS extends Method { val name = "OPTIONS" }
object GET extends Method { val name = "GET" }
object HEAD extends Method { val name = "HEAD" }
object POST extends Method { val name = "POST" }
object PUT extends Method { val name = "PUT" }
object PATCH extends Method { val name = "PATCH" }
object DELETE extends Method { val name = "DELETE" }
object TRACE extends Method { val name = "TRACE" }
object CONNECT extends Method { val name = "CONNECT" }
case object OPTIONS extends Method { val name = "OPTIONS" }
case object GET extends Method { val name = "GET" }
case object HEAD extends Method { val name = "HEAD" }
case object POST extends Method { val name = "POST" }
case object PUT extends Method { val name = "PUT" }
case object PATCH extends Method { val name = "PATCH" }
case object DELETE extends Method { val name = "DELETE" }
case object TRACE extends Method { val name = "TRACE" }
case object CONNECT extends Method { val name = "CONNECT" }

object ANY extends Method { val name = "GET" }
case object ANY extends Method { val name = "GET" }
}

4 comments on commit ff854bb

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 : Performance Benchmarks (SimpleEffectBenchmarkServer)

concurrency: 256
requests/sec: 334707

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 : Performance Benchmarks (PlainTextBenchmarkServer)

concurrency: 256
requests/sec: 339859

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 : Performance Benchmarks (SimpleEffectBenchmarkServer)

concurrency: 256
requests/sec: 331404

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 : Performance Benchmarks (PlainTextBenchmarkServer)

concurrency: 256
requests/sec: 346857

Please sign in to comment.