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

com.twitter.server.handler.DtabHandler.scala Maven / Gradle / Ivy

The newest version!
package com.twitter.server.handler

import com.twitter.finagle.{Dtab, Service}
import com.twitter.finagle.http.{Request, Response}
import com.twitter.server.util.HttpUtils.newOk
import com.twitter.util.Future

/**
 * Dumps a simple string representation of the current Dtab.
 *
 * From the Dtab docs: A Dtab--short for delegation table--comprises a sequence
 * of delegation rules. Together, these describe how to bind a
 * path to an Addr.
 */
class DtabHandler extends Service[Request, Response] {
  def apply(req: Request): Future[Response] =
    newOk(Dtab.base.toString)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy