Rename example files

This commit is contained in:
Eike Kettner
2020-02-14 11:09:39 +01:00
parent 569aae3038
commit bf9bf25502
20 changed files with 128 additions and 88 deletions

View File

@ -65,6 +65,11 @@ case class LenientUri(
fs2.io.readInputStream(Sync[F].delay(url.openStream()), chunkSize, blocker, true)
)
def readText[F[_]: Sync: ContextShift](chunkSize: Int, blocker: Blocker): F[String] =
readURL[F](chunkSize, blocker).
through(fs2.text.utf8Decode).
compile.foldMonoid
def host: Option[String] =
authority.map(a =>
a.indexOf(':') match {