Skip to content

Commit

Permalink
Introduce EndpointModule
Browse files Browse the repository at this point in the history
  • Loading branch information
vkostyukov committed Oct 2, 2018
1 parent ec9e236 commit 6bc8cc5
Show file tree
Hide file tree
Showing 47 changed files with 1,432 additions and 1,524 deletions.
3 changes: 1 addition & 2 deletions benchmarks/src/main/scala/io/finch/benchmarks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.twitter.finagle.http.{Request, Response}
import com.twitter.io.Buf
import com.twitter.util.{Await, Try}
import io.circe.generic.auto._
import io.finch.catsEffect._
import io.finch.circe._
import io.finch.data.Foo
import java.nio.charset.{Charset, StandardCharsets}
Expand All @@ -19,7 +18,7 @@ import shapeless._
@Warmup(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS)
@Fork(2)
abstract class FinchBenchmark {
abstract class FinchBenchmark extends Endpoint.Module[IO] {
val postPayload: Input = Input.post("/").withBody[Text.Plain](Buf.Utf8("x" * 1024))
val getRoot: Input = Input.get("/")
val getFooBarBaz: Input = Input.get("/foo/bar/baz")
Expand Down
Loading

0 comments on commit 6bc8cc5

Please sign in to comment.