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

sttp.tapir.server.netty.internal.package.scala Maven / Gradle / Ivy

There is a newer version: 1.11.4
Show newest version
package sttp.tapir.server.netty

import io.netty.handler.codec.http.HttpHeaders
import sttp.model.Header

import scala.collection.JavaConverters._

package object internal {
  implicit class RichNettyHttpHeaders(underlying: HttpHeaders) {
    def toHeaderSeq: List[Header] =
      underlying.asScala.map(e => Header(e.getKey, e.getValue)).toList
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy