Skip to content

Commit

Permalink
Merge pull request #791 from ilya-murzinov/issue-790-finagle-date-header
Browse files Browse the repository at this point in the history
Make Finagle in benchmark use Date header
  • Loading branch information
vkostyukov authored Jun 11, 2017
2 parents 2484227 + 060c3f8 commit c64c966
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/src/main/scala/io/finch/wrk/Finagle.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.twitter.finagle.Service
import com.twitter.finagle.http.{Method, Request, Response, Status}
import com.twitter.io.Buf
import com.twitter.util.Future
import io.finch.internal._

/**
* How to benchmark this:
Expand Down Expand Up @@ -33,6 +34,7 @@ object Finagle extends App {
val rep = Response(req.version, Status.Ok)
rep.content = Buf.ByteArray.Owned(payloadOut)
rep.contentType = "application/json"
rep.date = currentTime()

Future.value(rep)
}
Expand Down

0 comments on commit c64c966

Please sign in to comment.