A decoded representation of a multipart part.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HasHeadersclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Returns the value of the Content-Disposition
header, which should be used when sending this part in a multipart request.
Returns the value of the Content-Disposition
header, which should be used when sending this part in a multipart request.
The syntax is specified by RFC6266 section 4.1. For safety and simplicity, disposition parameter values are represented as quoted-string
, defined in RFC9110 section 5.6.4.
quoted-string
allows usage of visible ASCII characters (%x21-7E
), except for "
and \
, which must be escaped with a backslash. Additionally, space and horizontal tab is allowed, as well as octets 0x80-FF
(obs-data
). In practice this means that - while not explicitly allowed - non-ASCII UTF-8 characters are valid according to this grammar. Additionally, RFC6532 makes it more explicit that non-ASCII UTF-8 is allowed. Control characters are not allowed.
This method makes sure that "
and \
are escaped, while leaving possible rejection of forbidden characters to lower layers (sttp
backends).
Attributes
Attributes
- Definition Classes
Adds the given header to the end of the headers sequence.
Adds the given header to the end of the headers sequence.
Value parameters
- replaceExisting
-
If there's already a header with the same name, should it be dropped?
Attributes
Adds the given header to the end of the headers sequence.
Adds the given header to the end of the headers sequence.
Value parameters
- replaceExisting
-
If there's already a header with the same name, should it be dropped?
Attributes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- HasHeaders
Attributes
- Inherited from:
- HasHeaders
Attributes
- Inherited from:
- HasHeaders
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- HasHeaders