org.apache.pekko.http.scaladsl.model.headers
Content-Disposition
Companion class Content-Disposition
object Content-Disposition extends ModeledCompanion[Content-Disposition] with Serializable
Document https://tools.ietf.org/html/rfc6266 updates document https://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html . Between these two there is slight but important difference regarding how parameter values are formatted. In RFC6266 parameters values are without quotes and in RFC2616 they are quoted. Since common practice among http servers is to understand quoted values, we use older document as reference here. Extended (i.e. encoded) parameter values are not quoted, see ext-parameter - https://tools.ietf.org/html/rfc5987#section-3.2.1
Note: Pekko HTTP uses "filename" key to store filename and handles encoding/decoding automatically. To output customized ASCII fallback version of filename provide "filename*" for unicode and "filename" for ASCII.
- Source
- headers.scala
- Alphabetic
- By Inheritance
- Content-Disposition
- Serializable
- ModeledCompanion
- Renderable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- val lowercaseName: String
- Definition Classes
- ModeledCompanion
- val name: String
- Definition Classes
- ModeledCompanion
- def parseFromValueString(value: String): Either[List[ErrorInfo], Content-Disposition]
Parses the given value into a header of this type.
Parses the given value into a header of this type. Returns
Right[T]
if parsing was successful andLeft(errors)
otherwise.- Definition Classes
- ModeledCompanion
- final def render[R <: Rendering](r: R): r.type
- Definition Classes
- ModeledCompanion → Renderable