com.twitter.finagle

http

package http

Visibility
  1. Public
  2. All

Type Members

  1. case class BadHttpRequest(httpVersion: HttpVersion, method: HttpMethod, uri: String, exception: Exception) extends DefaultHttpRequest with Product with Serializable

  2. class Cookie extends AnyRef

    Scala wrapper around Netty cookies.

  3. class CookieMap extends Map[String, Cookie] with MapLike[String, Cookie, CookieMap]

    Adapt cookies of a Message to a mutable Map where cookies are indexed by their name.

    Adapt cookies of a Message to a mutable Map where cookies are indexed by their name. Requests use the Cookie header and Responses use the Set-Cookie header. If a cookie is added to the CookieMap, a header is automatically added to the Message. You can add the same cookie more than once. Use getAll to retrieve all of them, otherwise only the first one is returned. If a cookie is removed from the CookieMap, a header is automatically removed from the message.

  4. case class FileElement(name: String, content: ChannelBuffer, contentType: Option[String] = None, filename: Option[String] = None) extends FormElement with Product with Serializable

  5. sealed abstract class FormElement extends AnyRef

  6. abstract class HeaderMap extends Map[String, String] with MapLike[String, String, HeaderMap]

    Message headers map.

    Message headers map.

    Header names are case-insensitive. For example, get("accept") is the same as get("Accept").

    The map is a multi-map. Use getAll() to get all values for a key. Use add() to append a key-value.

  7. case class Http(_compressionLevel: Int = 1, _maxRequestSize: StorageUnit = 5.megabytes, _maxResponseSize: StorageUnit = 5.megabytes, _decompressionEnabled: Boolean = true, _channelBufferUsageTracker: Option[ChannelBufferUsageTracker] = None, _annotateCipherHeader: Option[String] = None, _enableTracing: Boolean = false, _maxInitialLineLength: StorageUnit = 4096.bytes, _maxHeaderSize: StorageUnit = 8192.bytes) extends CodecFactory[HttpRequest, HttpResponse] with Product with Serializable

    _compressionLevel

    The compression level to use. If passed the default value (-1) then use TextualContentCompressor which will compress text-like content-types with the default compression level (6). Otherwise, use HttpContentCompressor for all content-types with specified compression level.

  8. trait HttpMuxHandler extends Service[HttpRequest, HttpResponse]

    Trait HttpMuxHandler is used for service-loading HTTP handlers.

  9. class HttpMuxer extends Service[HttpRequest, HttpResponse]

    A service that dispatches incoming requests to registered handlers.

    A service that dispatches incoming requests to registered handlers. In order to choose which handler to dispatch the request to, we take the path of the request and match it with the patterns of the pre-registered handlers. The pattern matching follows these rules:

    • Patterns ending with "/" use exclusive prefix matching. Eg: the pattern "foo/bar/" matches these paths: "foo/bar/", "foo/bar/baz", etc but NOT "foo/bar" Similarly, the pattern "/" matches all paths
    • Patterns not ending with "/" use exact matching. Eg: the pattern "foo/bar" ONLY matches this path: "foo/bar"
    • Special case: The pattern "" matches only "/" and ""

    NOTE: When multiple pattern matches exist, the longest pattern wins.

  10. class HttpTransport extends Transport[Any, Any]

    A Transport with close behavior managed by ConnectionManager.

  11. class MapHeaderMap extends HeaderMap

    Mutable-Map-backed HeaderMap

  12. class MapParamMap extends ParamMap

    Map-backed ParamMap.

  13. abstract class Message extends HttpMessage

    Rich HttpMessage

    Rich HttpMessage

    Base class for Request and Response. There are both input and output methods, though only one set of methods should be used.

  14. class MessageHeaderMap extends HeaderMap

    HttpMessage-backed HeaderMap.

  15. class MockResponse extends Response

  16. abstract class ParamMap extends Map[String, String] with MapLike[String, String, ParamMap]

    Request parameter map.

    Request parameter map.

    This is a multi-map. Use getAll() get all values for a key.

  17. case class ProxyCredentials(username: String, password: String) extends Product with Serializable

  18. abstract class Request extends Message with HttpRequestProxy

    Rich HttpRequest.

    Rich HttpRequest.

    Use RequestProxy to created an even richer subclass.

  19. class RequestBuilder[HasUrl, HasForm] extends AnyRef

  20. class RequestParamMap extends ParamMap

    HttpRequest-backed param map.

    HttpRequest-backed param map. Handle parameters in the URL and form encoded body. Multipart forms are not supported (not needed, could be abusive).

    This map is a multi-map. Use getAll() to get all values for a key.

  21. abstract class RequestProxy extends Request

    Proxy for Request.

    Proxy for Request. This can be used to create a richer request class that wraps Request.

  22. abstract class Response extends Message with HttpResponseProxy

    Rich HttpResponse

  23. case class RichHttp[REQUEST <: Request](httpFactory: Http, aggregateChunks: Boolean = true) extends CodecFactory[REQUEST, Response] with Product with Serializable

    Ed.

    Ed. note: I'm not sure how parameterizing on REQUEST <: Request works safely, ever. This is a big typesafety bug: the codec is blindly casting Requests to REQUEST.

    Setting aggregateChunks to false disables the aggregator, and consequently lifts the restriction on request size.

    httpFactory

    the underlying HTTP CodecFactory

    aggregateChunks

    if true, the client pipeline collects HttpChunks into the body of each HttpResponse

  24. class SafeHttpServerCodec extends HttpServerCodec

    Convert exceptions to BadHttpRequests

  25. case class SimpleElement(name: String, content: String) extends FormElement with Product with Serializable

  26. class TlsFilter extends SimpleFilter[HttpRequest, HttpResponse]

    Adds the host headers to the org.jboss.netty.handler.codec.http.HttpRequest for TLS-enabled requests.

Value Members

  1. object BadHttpRequest extends Serializable

  2. object EmptyParamMap extends ParamMap

    Empty ParamMap

  3. object HeaderMap

  4. object Http extends Serializable

  5. object HttpMuxer extends Service[HttpRequest, HttpResponse]

    Singleton default multiplex service

  6. object HttpTracing

  7. object MapHeaderMap

  8. object MapParamMap

  9. object MediaType

  10. object Message

  11. object Method

    Scala aliases for HttpMethod.

    Scala aliases for HttpMethod. Java users should use Netty's HttpMethod.

  12. object ParamMap

  13. object ProxyCredentials extends Serializable

  14. object Request

  15. object RequestBuilder

    Factory for com.twitter.finagle.http.RequestBuilder instances

  16. object RequestConfig extends Serializable

  17. object Response

  18. object SpnegoAuthenticator

    A SPNEGO HTTP authenticator as defined in https://tools.ietf.org/html/rfc4559, which gets its credentials from a provided CredentialSource...

    A SPNEGO HTTP authenticator as defined in https://tools.ietf.org/html/rfc4559, which gets its credentials from a provided CredentialSource... usually JAAS.

  19. object Status

    Scala aliases for HttpResponseStatus.

    Scala aliases for HttpResponseStatus. Java users should use Netty's HttpResponseStatus.

  20. object TlsFilter

  21. object Version

    Scala aliases for HttpVersion.

    Scala aliases for HttpVersion. Java users should use Netty's HttpVersion

  22. package codec

  23. package filter

  24. package netty

  25. package path

  26. package service

  27. package util

Ungrouped