-
Notifications
You must be signed in to change notification settings - Fork 22
feat: Add http4s client and server modules with simple tests #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sServerConfig.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sServerConfig.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/CorrelationIdMiddleware.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/CorrelationIdMiddleware.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/CorrelationIdMiddleware.scala
Outdated
Show resolved
Hide resolved
http4s-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sClientModule.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sRouting.scala
Outdated
Show resolved
Hide resolved
http4s-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sClientModule.scala
Outdated
Show resolved
Hide resolved
http4s-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sClientModule.scala
Outdated
Show resolved
Hide resolved
http4s-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sClientModule.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sRouting.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sServerConfig.scala
Outdated
Show resolved
Hide resolved
http4s-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sClientModule.scala
Outdated
Show resolved
Hide resolved
http4s-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sClientConfig.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sServerConfig.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sServerConfig.scala
Outdated
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sServerConfig.scala
Show resolved
Hide resolved
http4s-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sServerModule.scala
Outdated
Show resolved
Hide resolved
sideeffffect
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would avoid creating wrapper classes which don't add any value, like class Http4sClientModule
http4s-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sClientModule.scala
Outdated
Show resolved
Hide resolved
|
@jakubjanecek it seems to me that you intended the modules/config case classes not just for any http4s server/client, but specifically for the Blaze flavours. So why not reflect that in the name of the objects, like |
|
@sideeffffect I agree. After the discussions here I see that I made the mistake of making it generic http4s thing but it's actually only one of the implementations which is |
|
I've tried to address all your comments somehow. Please have another look. Thanks. |
http4s-blaze-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sBlazeClient.scala
Show resolved
Hide resolved
http4s-blaze-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sBlazeClient.scala
Outdated
Show resolved
Hide resolved
...4s-blaze-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sBlazeClientConfig.scala
Show resolved
Hide resolved
...4s-blaze-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sBlazeClientConfig.scala
Outdated
Show resolved
Hide resolved
...4s-blaze-server/src/main/scala/com/avast/server/toolkit/http4s/Http4sBlazeServerConfig.scala
Show resolved
Hide resolved
http4s-blaze-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sBlazeClient.scala
Show resolved
Hide resolved
...4s-blaze-server/src/main/scala/com/avast/server/toolkit/http4s/CorrelationIdMiddleware.scala
Outdated
Show resolved
Hide resolved
|
Everyone I think this is ready for the last round of review and possibly merging. |
9cd540f to
13153c0
Compare
example/src/main/scala/com/avast/server/toolkit/example/Test.scala
Outdated
Show resolved
Hide resolved
...4s-blaze-client/src/main/scala/com/avast/server/toolkit/http4s/Http4sBlazeClientConfig.scala
Show resolved
Hide resolved
...rver/src/main/scala/com/avast/server/toolkit/http4s/middleware/CorrelationIdMiddleware.scala
Show resolved
Hide resolved
http4s modules renamed to http4s-blaze-* to be more precise refactor: CorrelationIdMiddleware made more general refactor: Http4sRouting made more general
refactor: PR review changes docs: Add http4s docs and tweak mdoc configuration
7169daf to
ade1f62
Compare
This is not fully finished but I thought I'd put it up for review earlier. Docs and examples are missing, will be added before merging.