All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.buoyant.router.http.HeadersLike.scala Maven / Gradle / Ivy

There is a newer version: 1.7.5
Show newest version
package io.buoyant.router.http

/**
 * Type class for HTTP headers object
 * @tparam H Headers object type
 */
trait HeadersLike[H] {
  def toSeq(headers: H): Seq[(String, String)]
  def contains(headers: H, k: String): Boolean
  def get(headers: H, k: String): Option[String]
  def getAll(headers: H, k: String): Seq[String]
  def add(headers: H, k: String, v: String): Unit
  def set(headers: H, k: String, v: String): Unit
  def remove(headers: H, key: String): Seq[String]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy