All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spinoco.protocol.http.header.Keep-Alive.scala Maven / Gradle / Ivy

package spinoco.protocol.http.header

import spinoco.protocol.http.header.value.{HeaderCodecDefinition, KeepAliveParams}

/**
  *   RFC 7230 appendix A.1.2
  *
  *   @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive
  */
sealed case class `Keep-Alive`(value: KeepAliveParams) extends DefaultHeader


object `Keep-Alive` { val codec =
  HeaderCodecDefinition[`Keep-Alive`](KeepAliveParams.codec.xmap (`Keep-Alive`.apply, _.value))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy