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

org.scalatra.HttpMessage.scala Maven / Gradle / Ivy

The newest version!
package org.scalatra

import scala.collection.Map

trait HttpMessage {
  /**
   * A map of headers.  Multiple header values are separated by a ','
   * character.  The keys of this map are case-insensitive.
   */
  def headers: Map[String, String]

  /**
   * The content of the Content-Type header, or None if absent.
   */
  def contentType: Option[String]

  /**
   * Returns the name of the character encoding of the body, or None if no
   * character encoding is specified.
   */
  def characterEncoding: Option[String]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy