Skip to content

Conversation

AdamChlupacek
Copy link
Member

@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.

)(
socketGroup: SocketGroup
, tlsContext: TLSContext
):F[HttpClient[F]] = Sync[F].delay {
Copy link
Member

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]
Copy link
Member

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?

Copy link
Member Author

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](
Copy link
Member

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

Copy link
Member Author

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].

@pmukhin
Copy link

pmukhin commented Jul 28, 2020

Hi! Any chance this is going to be merged anytime soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants