Skip to content

Commit

Permalink
Remove deprecated get(Set-Cookie) on headers
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Feb 6, 2021
1 parent 84fbe24 commit dec364f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/src/main/scala/org/http4s/Headers.scala
Expand Up @@ -42,13 +42,6 @@ final class Headers private (private val headers: List[Header]) extends AnyVal {
*/
def get(key: HeaderKey.Extractable): Option[key.HeaderT] = key.from(this)

@deprecated(
"Use response.cookies instead. Set-Cookie is unique among HTTP headers in that it can be repeated but can't be joined by a ','. This will return only the first Set-Cookie header. `response.cookies` will return the complete list.",
"0.16.0-RC1"
)
def get(key: `Set-Cookie`.type): Option[`Set-Cookie`] =
key.from(this).headOption

/** Attempt to get a [[org.http4s.Header]] from this collection of headers
*
* @param key name of the header to find
Expand Down

0 comments on commit dec364f

Please sign in to comment.