Package

hammock

Permalink

package hammock

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. hammock
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class AsSyntaxOnHttpF[A] extends AnyRef

    Permalink
  2. trait Codec[A] extends Encoder[A] with Decoder[A] with Serializable

    Permalink
  3. class CodecException extends Throwable

    Permalink
  4. trait ContentType extends AnyRef

    Permalink
  5. trait Decoder[A] extends Serializable

    Permalink
  6. final case class Delete(req: HttpRequest) extends HttpF[HttpResponse] with Product with Serializable

    Permalink
  7. trait Encoder[A] extends Serializable

    Permalink
  8. sealed trait Entity extends AnyRef

    Permalink
  9. final case class Get(req: HttpRequest) extends HttpF[HttpResponse] with Product with Serializable

    Permalink
  10. type HammockF[A] = EitherK[HttpF, MarshallF, A]

    Permalink
  11. implicit class HammockFSyntax[A] extends AnyRef

    Permalink
  12. final case class Head(req: HttpRequest) extends HttpF[HttpResponse] with Product with Serializable

    Permalink
  13. sealed trait HttpF[A] extends AnyRef

    Permalink
  14. case class HttpRequest(uri: Uri, headers: Map[String, String], entity: Option[Entity]) extends Product with Serializable

    Permalink
  15. class HttpRequestC[F[_]] extends AnyRef

    Permalink
  16. implicit class HttpRequestIOSyntax[A] extends AnyRef

    Permalink
  17. case class HttpResponse(status: Status, headers: Map[String, String], entity: Entity) extends Product with Serializable

    Permalink
  18. trait InterpTrans[F[_]] extends AnyRef

    Permalink
  19. trait Method extends AnyRef

    Permalink
  20. final case class Options(req: HttpRequest) extends HttpF[HttpResponse] with Product with Serializable

    Permalink
  21. final case class Post(req: HttpRequest) extends HttpF[HttpResponse] with Product with Serializable

    Permalink
  22. final case class Put(req: HttpRequest) extends HttpF[HttpResponse] with Product with Serializable

    Permalink
  23. case class Status(code: Int, text: String, description: String) extends Product with Serializable

    Permalink
  24. final case class Trace(req: HttpRequest) extends HttpF[HttpResponse] with Product with Serializable

    Permalink
  25. case class Uri(scheme: Option[Scheme] = None, authority: Option[Authority] = None, path: String = "", query: Map[String, String] = Map(), fragment: Option[Fragment] = None) extends Product with Serializable

    Permalink

    Represents a HttpRequest URI.

    Represents a HttpRequest URI.

    You have several different options for constructing Uri:

    scala> val uri1 = uri"http://google.com"
    uri1: hammock.Uri = Uri(Some(http),None,google.com,Map(),None)
    
    scala> val uri2 = Uri(None, None, "path", Map(), None)
    uri2: hammock.Uri = Uri(None,None,path,Map(),None)
    
    scala> val uri3 = Uri.fromString("http://google.com")
    uri3: Either[String,hammock.Uri] = Right(Uri(Some(http),None,google.com,Map(),None))
    scheme

    scheme of the uri. For example https

    authority

    authority of the uri. For example: user:[email protected]:443

    path

    path of the uri. For example /books/234

    query

    query string of the uri. For example ?page=3&utm_source=campaign

    fragment

    fragment of the uri. For example #header1

  26. implicit class UriStringContext extends AnyRef

    Permalink

    Unsafe string interpolator allowing uri parsing.

    Unsafe string interpolator allowing uri parsing. It's unsafe because in case of any error happen (a Left is returned by the fromString method), it will throw an exception.

    scala> uri"http://user:[email protected]/path?page=4#index"
    res1: hammock.Uri = Uri(Some(http),Some(user:pass),pepegar.com/path,Map(page -> 4),Some(index))

Value Members

  1. object Codec extends Serializable

    Permalink
  2. object CodecException extends Serializable

    Permalink
  3. object ContentType

    Permalink
  4. object Decoder extends Serializable

    Permalink
  5. object Encoder extends Serializable

    Permalink
  6. object Entity

    Permalink
  7. object Hammock

    Permalink
  8. object HttpRequest extends Serializable

    Permalink
  9. object HttpRequestC

    Permalink
  10. object HttpResponse extends Serializable

    Permalink
  11. object Method

    Permalink
  12. object Ops

    Permalink
  13. object Status extends Serializable

    Permalink
  14. object Uri extends Serializable

    Permalink
  15. object UriContext extends Context

    Permalink
  16. object UriInterpolator extends Interpolator

    Permalink
  17. implicit val embedString: Embedder[(UriContext.type, UriContext.type), String, Input, UriInterpolator.type]

    Permalink
  18. implicit def hammockNT[F[_]](implicit arg0: Sync[F], H: InterpTrans[F], M: ~>[MarshallF, F]): ~>[HammockF, F]

    Permalink
  19. package hi

    Permalink
  20. package js

    Permalink
  21. object marshalling

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped