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

io.shaka.http.FormParameters.scala Maven / Gradle / Ivy

package io.shaka.http

import FormParameter.{deserialize, serialize}

object FormParameters {
  type FormParameters = List[FormParameter]
  def toEntity(formParameters: FormParameters):Entity = Entity(formParameters.map(serialize).mkString("&"))
  def fromEntity(entity: Entity):FormParameters = entity.toString.split("&").map(deserialize).toList
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy