Packages

  • package root
    Definition Classes
    root
  • package eu
    Definition Classes
    root
  • package shiftforward
    Definition Classes
    eu
  • package apso

    Contains ShiftForward's general-purpose utility classes and methods, as well as extensions of existing ones.

    Contains ShiftForward's general-purpose utility classes and methods, as well as extensions of existing ones.

    Definition Classes
    shiftforward
  • package akka
    Definition Classes
    apso
  • package http
    Definition Classes
    akka
  • trait ProxySupport extends ClientIPDirectives

    Adds proxy to akka-http services to proxy requests to other hosts.

    Adds proxy to akka-http services to proxy requests to other hosts.

    If the target server is known in advance, a Proxy object can be created. This internally materializes a flow that is continuously active and ready to route incoming requests.

    For one-off requests or requests to previously unknown hosts, this trait defines two routes: - proxySingleTo takes the original request and proxies it to the proxy URI; - proxySingleToUnmatchedPath copies only the unmatched path from the original URI, and adds it to the path of the proxy URI.

    Definition Classes
    http
  • Proxy

class Proxy extends Logging

A representation of a reverse proxy for a remote host. This class internally materializes a flow that is continuously active and ready to route incoming requests.

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Proxy
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Proxy(host: String, port: Int, reqQueueSize: Int = defaultQueueSize, strictTimeout: Option[FiniteDuration] = None)(implicit system: ActorSystem, mat: Materializer)

    host

    the target host

    port

    the target port

    reqQueueSize

    the maximum size of the queue of pending backend requests

    strictTimeout

    maximum time to wait for the full response.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. lazy val log: Logger

    The Logger object.

    The Logger object. This logger will have the same name as the concrete class into which this trait is mixed-in.

    Definition Classes
    Logging
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def proxyTo(uri: Uri): Route

    Proxies a request to a destination URI.

    Proxies a request to a destination URI.

    uri

    the target URI

    returns

    a route that handles requests by proxying them to the given URI.

  17. def sendRequest(req: HttpRequest, failOnDrop: Boolean): Future[RouteResult]

    Sends a manually crafted request to a destination URI.

    Sends a manually crafted request to a destination URI.

    req

    the HTTP Request

    failOnDrop

    if the future should fail when the message is dropped, or complete with a 503

    returns

    the request result.

  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped