FormDataContent

spice.http.content.FormDataContent
See theFormDataContent companion object
case class FormDataContent(entries: Map[String, FormDataEntry]) extends Content

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Content
class Object
trait Matchable
class Any
Show all
Known subtypes
object FormDataContent.type

Members list

Value members

Concrete methods

override def asStream: Stream[IO, Byte]

Attributes

Definition Classes
override def asString: IO[String]

Attributes

Definition Classes
override def contentType: ContentType

Attributes

Definition Classes
def getFile(key: String): FileEntry
def getJson(key: String): Json
def getString(key: String): StringEntry
override def lastModified: Long

Attributes

Definition Classes
override def length: Long

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
override def withContentType(contentType: ContentType): Content

Attributes

Definition Classes
def withEntry(key: String, entry: FormDataEntry, replace: Boolean): FormDataContent
def withFile(key: String, fileName: String, file: File, headers: Headers): FormDataContent
def withJson(key: String, value: Json, headers: Headers): FormDataContent
override def withLastModified(lastModified: Long): Content

Attributes

Definition Classes
def withString(key: String, value: String, headers: Headers): FormDataContent

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val files: Map[String, FileEntry]
lazy val jsons: Map[String, Json]
lazy val strings: Map[String, StringEntry]