package testing
- Alphabetic
- Public
- All
Type Members
- trait ArbitraryInstances extends AnyRef
Value Members
- object ArbitraryInstances extends ArbitraryInstances
Provides extension methods for using the a http4s org.http4s.client.Client
Provides extension methods for using the a http4s org.http4s.client.Client
import scalaz.concurrent.Task import org.http4s._ import org.http4s.client._ import org.http4s.Http4s._ import org.http4s.Status._ import org.http4s.Method._ import org.http4s.EntityDecoder def client: Client = ??? val r: Task[String] = client(GET(uri("https://www.foo.bar/"))).as[String] val r2: DecodeResult[String] = client(GET(uri("https://www.foo.bar/"))).attemptAs[String] // implicitly resolve the decoder val req1 = r.run val req2 = r.run // Each invocation fetches a new Result based on the behavior of the Client
This package is the start of a multipart implementation for http4s.
This package is the start of a multipart implementation for http4s. It is still deficient in a few ways:
- All encoding is chunked transfers, except for entities small enough to fit into the blaze buffer. This irritates some server implementations.
- When decoding, chunks are kept in memory. Large ones should be buffered to a temp file.
- It's a bit handwavy around character sets. Things probably go horribly wrong if you're not UTF-8.
- This module is lightly tested, and its API should be considered experimental.
Enter this package at your own risk, but we'd love the feedback.