RequestOps

org.http4s.Request.RequestOps
implicit class RequestOps[F[_]](request: Request[F])

Attributes

Source
Message.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def asCurlWithBody(redactHeadersWhen: CIString => Boolean)(implicit concurrent: Concurrent[F], defaultCharset: Charset): F[(String, Request[F])]

cURL representation of the request and a new request

cURL representation of the request and a new request

Supported cURL-Parameters are: --request, --url, --header --data. Note that asCurlWith will print the request body, which may have privacy implications.

This method will consume the body create a new request with the cached body to avoid issues this may cause, which may consume large amounts of memory to cache a request that streams a large amount of data.

Attributes

Source
Message.scala