gigahorse.InMemoryBody.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 InMemoryBody private (
val bytes: Array[Byte]) extends gigahorse.Body() with Serializable {
override def equals(o: Any): Boolean = o match {
case x: InMemoryBody => (this.bytes == x.bytes)
case _ => false
}
override def hashCode: Int = {
37 * (37 * (17 + "gigahorse.InMemoryBody".##) + bytes.##)
}
override def toString: String = {
"InMemoryBody(" + bytes + ")"
}
private[this] def copy(bytes: Array[Byte] = bytes): InMemoryBody = {
new InMemoryBody(bytes)
}
def withBytes(bytes: Array[Byte]): InMemoryBody = {
copy(bytes = bytes)
}
}
object InMemoryBody {
def apply(bytes: Array[Byte]): InMemoryBody = new InMemoryBody(bytes)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy