next.proxy.errors.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otoroshi_2.12 Show documentation
Show all versions of otoroshi_2.12 Show documentation
Lightweight api management on top of a modern http reverse proxy
The newest version!
package otoroshi.next.proxy
import otoroshi.env.Env
import otoroshi.utils.syntax.implicits._
import play.api.mvc.Result
import scala.concurrent.{ExecutionContext, Future}
trait NgProxyEngineError {
def asResult()(implicit ec: ExecutionContext, env: Env): Future[Result]
}
object NgProxyEngineError {
case class NgResultProxyEngineError(result: Result) extends NgProxyEngineError {
override def asResult()(implicit ec: ExecutionContext, env: Env): Future[Result] = result.vfuture
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy