-
Notifications
You must be signed in to change notification settings - Fork 26
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
Support for fs2 2.3.0 and scala 2.13 #44
base: series/0.5
Are you sure you want to change the base?
Conversation
)( | ||
socketGroup: SocketGroup | ||
, tlsContext: TLSContext | ||
):F[HttpClient[F]] = Sync[F].delay { |
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.
No need for Sync, I think Applicative will do
@@ -114,12 +113,10 @@ trait HttpClient[F[_]] { | |||
def apply[F[_] : ConcurrentEffect : ContextShift : Timer]( | |||
requestCodec : Codec[HttpRequestHeader] |
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.
Do we need still the timer?
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.
Yes, it is required for the websocket client, as we need to do pings there.
@@ -36,7 +36,7 @@ object HttpServer { | |||
* Request is not suplied if failure happened before request was constructed. | |||
* | |||
*/ | |||
def apply[F[_] : ConcurrentEffect : Timer]( | |||
def apply[F[_] : ConcurrentEffect : Timer: ContextShift]( |
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.
Could we (and same for client) get rid of apply[F] as being constructor? Lets do mk, and have apply as summoner of the instance
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.
Changed them both to mk, however server cannot have summoner instance as the result is Stream[F, Unit].
… allow for apply summoing of HttpClient.
Hi! Any chance this is going to be merged anytime soon? |
@marko-asplund and @jhnsmth I have taken pieces of your work and updated the fs2-http to the newest fs2, while dropping the dependency on fs2-crypto as we now have implmentaion in fs2.
I have based it from spinoco compatiblity branch, as we had some fixes I wanted to keep, as such I did not not use your commits if you dont mind.
I am also dropping BASE64 implementation we had here, as fs2 has its own now.