org.http4s.headers.Content-Disposition$
See theContent-Disposition companion class
object Content-Disposition
Attributes
- Companion:
- class
- Source:
- Content-Disposition.scala
- Graph
- Supertypes
- Self type
- Content-Disposition.type
Members list
Concise view
Type members
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Attributes
- Source:
- Content-Disposition.scala
Implicits
Implicits
implicit val {
finalclass$anon()extendsRenderable{
valattrChar:CharPredicate=CharPredicate.AlphaNum.++(attrExtraSafeChars)
defrender(writer:Writer):writer.type={
valrenderExtFilename:Boolean=v.parameters.get(CIStringSyntax(_root_.scala.StringContext.apply("filename")).ci()).exists(((_$1:String)=>safeChars.matchesAll(_$1).unary_!))
valwithExtParams:Map[CIString,String]=if(renderExtFilename.&&(v.parameters.contains(CIStringSyntax(_root_.scala.StringContext.apply("filename*")).ci()).unary_!))v.parameters.+[String](ArrowAssoc[CIString](CIStringSyntax(_root_.scala.StringContext.apply("filename*")).ci()).->[String](v.parameters.apply(CIStringSyntax(_root_.scala.StringContext.apply("filename")).ci())))elsev.parameters
valwithExtParamsSorted:Map[CIString,String]=if(withExtParams.contains(CIStringSyntax(_root_.scala.StringContext.apply("filename")).ci()).&&(withExtParams.contains(CIStringSyntax(_root_.scala.StringContext.apply("filename*")).ci())))TreeMap.apply[CIString,String]()(ordered[CIString]($conforms[CIString])).++[String](withExtParams)elsewithExtParams
writer.append(v.dispositionType)
withExtParamsSorted.foreach[Writer](((x$1:Tuple2[CIString,String])=>x$1match{
caseTuple2(k,v)ifk.==(CIStringSyntax(_root_.scala.StringContext.apply("filename")).ci())=>
writer.<<(";").<<(k).<<('=').<<('\"')
writer.eligibleOnly(`v₂`,keep=safeChars,placeholder='?').<<('\"')
caseTuple2(k@CIStringSyntax(_root_.scala.StringContext.apply("","*")).ci(_),v)=>
writer.<<(";").<<(`k₂`).<<('=').<<("UTF-8\'\'").<<(Uri.encode(toEncode=`v₃`,Uri.encode$default$2,Uri.encode$default$3,toSkip=$anon.this.attrChar))
caseTuple2(k,v)=>
writer.<<(";").<<(`k₃`).<<("=\"").<<(`v₄`).<<('\"')
}))
writer
}
}
(new$anon():Object&Renderable)
}),((s:String)=>parse(s)))(renderableInst[Object&Renderable])" t="n"class="documentableName ">headerInstance: Header[Content-Disposition, Single]
Attributes
- Source:
- Content-Disposition.scala