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

spice.http.server.StaticHttpServer.scala Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package spice.http.server

import cats.effect.IO
import scribe.mdc.MDC
import spice.http.HttpExchange
import spice.http.server.handler.HttpHandler

trait StaticHttpServer extends HttpServer {
  protected val handler: HttpHandler

  override def apply(exchange: HttpExchange)(implicit mdc: MDC): IO[HttpExchange] = handler.handle(exchange)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy