Packages

  • package root
    Definition Classes
    root
  • package lol

    This is the documentation for the lolhttp library.

    This is the documentation for the lolhttp library.

    • http is the core module providing HTTP Client and Server.
    • json is an optional module providing integration with the circe JSON library.
    • html is an optional module providing HTML templating.
    Definition Classes
    root
  • package json

    Provides integration with the circe JSON library.

    Provides integration with the circe JSON library.

    Server.listen(8888) { request =>
      request.readAs(json[MyRequestData]).flatMap { data =>
        Ok(MyResponseData(data).asJson)
      }
    }

    Nothing really special here. Just a bunch of useful lol.http.ContentEncoder and lol.http.ContentDecoder for io.circe.Json values.

    This module is optional and you can easily use another scala JSON library by providing the required encoder/decoder (or treating JSON as string).

    Definition Classes
    lol
  • JsonContent
o

lol.json

JsonContent

object JsonContent

Provides lol.http.ContentEncoder and lol.http.ContentDecoder for io.circe.Json values.

Source
JsonContent.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonContent
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def decoder(maxSize: Int = ContentDecoder.MaxSize, codec: Codec = Codec.UTF8): ContentDecoder[Json]

    Creates JSON decoders.

    Creates JSON decoders.

    maxSize

    the maximum amout of byte to read in memory.

    codec

    the charset to use to read the JSON text. Default to UTF-8.

    returns

    a lol.http.ContentDecoder for io.circe.JSON.

  7. def encoder(codec: Codec = Codec.UTF8): ContentEncoder[Json]

    Creates JSON encoders.

    Creates JSON encoders.

    codec

    the charset to use to read the JSON text. Default to UTF-8.

    returns

    a lol.http.ContentEncoder for io.circe.JSON.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def sseEventDecoder: EventDecoder[Json]

    A decoder for Server Sent Events.

  18. def sseEventEncoder: EventEncoder[Json]

    A encoder for Server Sent Events.

  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped