org.http4s.headers.Keep-Alive$
See theKeep-Alive companion class
object Keep-Alive
Attributes
- Companion:
- class
- Source:
- Keep-Alive.scala
- Graph
- Supertypes
- Self type
- Keep-Alive.type
Members list
Concise view
Value members
Concrete methods
def reservedTokens.contains[String](p._1))))ParseResult.fail("InvalidKeep-Aliveheader",_root_.scala.StringContext.apply("Reservedtokenoflist","wasfoundintheextensions.").s(reservedTokens))else{
valvalidatedTimeoutSeconds:Either[ParseFailure,Option[Long]]=toTraverseOps[Option,Long](timeoutSeconds)(catsStdInstancesForOption).traverse[[A>:Nothing<:Any]=>Either[ParseFailure,A],Long](((t:Long)=>nonNegativeLong(t,"timeout")))(catsStdInstancesForEither[ParseFailure])
valvalidatedMax:Either[ParseFailure,Option[Long]]=toTraverseOps[Option,Long](max)(catsStdInstancesForOption).traverse[[A>:Nothing<:Any]=>Either[ParseFailure,A],Long](((m:Long)=>nonNegativeLong(m,"max")))(catsStdInstancesForEither[ParseFailure])
catsSyntaxTuple2Semigroupal[[B>:Nothing<:Any]=>Either[ParseFailure,B],Option[Long],Option[Long]](Tuple2.apply[Either[ParseFailure,Option[Long]],Either[ParseFailure,Option[Long]]](validatedTimeoutSeconds,validatedMax)).mapN[Keep-Alive](((`t₂`:Option[Long],`m₂`:Option[Long])=>impl(`t₂`,`m₂`,extension)))(catsStdInstancesForEither[ParseFailure],catsStdInstancesForEither[ParseFailure])
}
}elseParseResult.fail("InvalidKeep-Aliveheader","AllfieldsofKeep-Alivewereempty")" t="n"class="documentableName ">apply(timeoutSeconds: Option[Long], max: Option[Long], extension: List[(String, Option[String])]): ParseResult[Keep-Alive]
Attributes
- Source:
- Keep-Alive.scala
Attributes
- Source:
- Keep-Alive.scala
def unsafeApply(timeoutSeconds: Option[Long], max: Option[Long], extension: List[(String, Option[String])]): Keep-Alive
Attributes
- Source:
- Keep-Alive.scala
Implicits
Implicits
implicit val {
finalclass$anon()extendsRenderable{
defrender(writer:Writer):writer.type=vmatch{
caseKeep-Alive(t,m,e)=>
varhasWritten:Boolean=false
t.foreach[Unit](((l:Long)=>{
writer.<<("timeout=").<<(l)
hasWritten=true
}))
m.foreach[Writer](((`l₂`:Long)=>{
if(hasWritten)writer.<<(",")elsehasWritten=true
writer.<<("max=").<<(`l₂`)
}))
e.foreach[Unit](((p:Tuple2[String,Option[String]])=>{
if(hasWritten)writer.<<(",")elsehasWritten=true
writer.<<(p._1)
p._2.foreach[Writer](((qts:String)=>{
writer.<<("=")
writer.quote(qts,writer.quote$default$2,writer.quote$default$3)
}))
}))
writer
}
}
(new$anon():Object&Renderable)
}),((s:String)=>parse(s)))(renderableInst[Object&Renderable])" t="n"class="documentableName ">headerInstance: Header[Keep-Alive, Recurring]
Attributes
- Source:
- Keep-Alive.scala
Attributes
- Source:
- Keep-Alive.scala