gigahorse.FileBody.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gigahorse-core_2.13 Show documentation
Show all versions of gigahorse-core_2.13 Show documentation
Gigahorse is an HTTP client for Scala with multiple backend support.
The newest version!
/**
* This code is generated using [[https://www.scala-sbt.org/contraband/ sbt-contraband]].
*/
// DO NOT EDIT MANUALLY
package gigahorse
final class FileBody private (
val file: java.io.File) extends gigahorse.Body() with Serializable {
override def equals(o: Any): Boolean = o match {
case x: FileBody => (this.file == x.file)
case _ => false
}
override def hashCode: Int = {
37 * (37 * (17 + "gigahorse.FileBody".##) + file.##)
}
override def toString: String = {
"FileBody(" + file + ")"
}
private[this] def copy(file: java.io.File = file): FileBody = {
new FileBody(file)
}
def withFile(file: java.io.File): FileBody = {
copy(file = file)
}
}
object FileBody {
def apply(file: java.io.File): FileBody = new FileBody(file)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy