Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package http4s
    Definition Classes
    org
  • package argonaut
    Definition Classes
    http4s
  • package blaze
    Definition Classes
    http4s
  • package circe
    Definition Classes
    http4s
  • package client

    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
    Definition Classes
    http4s
  • package dsl
    Definition Classes
    http4s
  • package headers
    Definition Classes
    http4s
  • package jawn
    Definition Classes
    http4s
  • package json4s
    Definition Classes
    http4s
  • package multipart

    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.

    Definition Classes
    http4s
  • package parser
    Definition Classes
    http4s
  • package scalaxml
    Definition Classes
    http4s
  • package server
    Definition Classes
    http4s
  • package servlet
    Definition Classes
    http4s
  • package testing
    Definition Classes
    http4s
  • package twirl
    Definition Classes
    http4s
  • TwirlInstances
  • package util
    Definition Classes
    http4s
p

org.http4s

twirl

package twirl

Source
package.scala
Linear Supertypes
TwirlInstances, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. twirl
  2. TwirlInstances
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait TwirlInstances extends AnyRef

Value Members

  1. implicit def htmlContentEncoder(implicit charset: Charset = DefaultCharset): EntityEncoder[Html]
    Definition Classes
    TwirlInstances
  2. implicit def jsContentEncoder(implicit charset: Charset = DefaultCharset): EntityEncoder[JavaScript]

    Note: Twirl uses a media type of text/javascript.

    Note: Twirl uses a media type of text/javascript. This is obsolete, so we instead return org.http4s.MediaType.application/javascript.

    Definition Classes
    TwirlInstances
  3. implicit def txtContentEncoder(implicit charset: Charset = DefaultCharset): EntityEncoder[Txt]
    Definition Classes
    TwirlInstances
  4. implicit def xmlContentEncoder(implicit charset: Charset = DefaultCharset): EntityEncoder[Xml]
    Definition Classes
    TwirlInstances

Inherited from TwirlInstances

Inherited from AnyRef

Inherited from Any

Ungrouped