OfFile
Attributes
- Source
- PartValue.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PartValueclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Returns a byte-stream representation of the part's body.
Returns a byte-stream representation of the part's body.
For OfString parts, the underlying string is piped through a UTF-8 encoder. For OfFile parts, the underlying file's content will be read from disk.
Attributes
- Returns
-
The part's body as a stream of bytes
- Source
- PartValue.scala
Fold over the different PartValue subtypes to compute a value
Fold over the different PartValue subtypes to compute a value
Value parameters
- onFile
-
Called with the underlying filename and file path if this part is an
OfFile - onString
-
Called with the underlying String if this part is an
OfString
Attributes
- Returns
-
The value returned by either
onStringoronFile - Source
- PartValue.scala
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Builds a new Part from this PartValue.
Builds a new Part from this PartValue.
Value parameters
- headers
-
Any extra headers to add to the part.
Content-Dispositionis added automatically based on thename, and in the case ofOfFileparts, the filename - name
-
The name of the part
Attributes
- Returns
-
a new Part based on the given name, applicable filename, and body of this
PartValue. - Inherited from:
- PartValue
- Source
- PartValue.scala