Implicits

object Implicits

Includes implicit conversions and extension methods.

class Object
trait Matchable
class Any

Type members

Classlikes

final class HttpMessageType[T <: HttpMessage](message: T) extends AnyVal

Adds extension methods to HttpMessage for building messages with various content types.

Adds extension methods to HttpMessage for building messages with various content types.

Givens

Givens

given bytesToEntity: Conversion[Array[Byte], Entity]

Converts byte array to Entity.

Converts byte array to Entity.

given fileToEntity: Conversion[File, Entity]

Converts file to Entity.

Converts file to Entity.

given inputStreamToEntity: Conversion[InputStream, Entity]

Converts input stream to Entity.

Converts input stream to Entity.

given intToResponseStatus: Conversion[Int, ResponseStatus]

Converts int to ResponseStatus.

Converts int to ResponseStatus.

given stringToEntity: Conversion[String, Entity]

Converts string to Entity.

Converts string to Entity.

given stringToHeader: Conversion[String, Header]

Converts string to Header.

Converts string to Header.

given stringToRequestMethod: Conversion[String, RequestMethod]

Converts string to RequestMethod.

Converts string to RequestMethod.

given stringToUri: Conversion[String, Uri]

Converts string to Uri.

Converts string to Uri.

given tupleToFilePart: Conversion[(String, File), FilePart]

Converts tuple to FilePart where tuple is name-content pair.

Converts tuple to FilePart where tuple is name-content pair.

given tupleToHeader: Conversion[(String, String), Header]

Converts tuple to Header where tuple is name-value pair.

Converts tuple to Header where tuple is name-value pair.

given tupleToHeaderWithDateValue: Conversion[(String, Instant), Header]

Converts tuple to Header where tuple is name-value pair.

Converts tuple to Header where tuple is name-value pair.

given tupleToHeaderWithIntValue: Conversion[(String, Int), Header]

Converts tuple to Header where tuple is name-value pair.

Converts tuple to Header where tuple is name-value pair.

given tupleToHeaderWithLongValue: Conversion[(String, Long), Header]

Converts tuple to Header where tuple is name-value pair.

Converts tuple to Header where tuple is name-value pair.

given tupleToTextPart: Conversion[(String, String), TextPart]

Converts tuple to TextPart where tuple is name-content pair.

Converts tuple to TextPart where tuple is name-content pair.

given writerToEntity: Conversion[OutputStream => Unit, Entity]

Converts writer to Entity.

Converts writer to Entity.