Package

com.twitter.finagle

http

Permalink

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

    Permalink
  2. class Cookie extends AnyRef

    Permalink

    Scala wrapper around Netty cookies.

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

    Permalink

    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

    Permalink
  5. sealed abstract class FormElement extends AnyRef

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

    Permalink

    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

    Permalink

    _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]

    Permalink

    Trait HttpMuxHandler is used for service-loading HTTP handlers.

  9. class HttpMuxer extends Service[HttpRequest, HttpResponse]

    Permalink

    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]

    Permalink

    A Transport with close behavior managed by ConnectionManager.

  11. class MapHeaderMap extends HeaderMap

    Permalink

    Mutable-Map-backed HeaderMap

  12. class MapParamMap extends ParamMap

    Permalink

    Map-backed ParamMap.

  13. abstract class Message extends HttpMessage

    Permalink

    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

    Permalink

    HttpMessage-backed HeaderMap.

  15. class MockResponse extends Response

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

    Permalink

    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

    Permalink
  18. abstract class Request extends Message with HttpRequestProxy

    Permalink

    Rich HttpRequest.

    Rich HttpRequest.

    Use RequestProxy to created an even richer subclass.

  19. class RequestBuilder[HasUrl, HasForm] extends AnyRef

    Permalink
  20. class RequestParamMap extends ParamMap

    Permalink

    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

    Permalink

    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

    Permalink

    Rich HttpResponse

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

    Permalink

    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

    Permalink

    Convert exceptions to BadHttpRequests

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

    Permalink
  26. class TlsFilter extends SimpleFilter[HttpRequest, HttpResponse]

    Permalink

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

Value Members

  1. object BadHttpRequest extends Serializable

    Permalink
  2. object EmptyParamMap extends ParamMap

    Permalink

    Empty ParamMap

  3. object HeaderMap

    Permalink
  4. object Http extends Serializable

    Permalink
  5. object HttpMuxer extends Service[HttpRequest, HttpResponse]

    Permalink

    Singleton default multiplex service

  6. object HttpTracing

    Permalink
  7. object MapHeaderMap

    Permalink
  8. object MapParamMap

    Permalink
  9. object MediaType

    Permalink
  10. object Message

    Permalink
  11. object Method

    Permalink

    Scala aliases for HttpMethod.

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

  12. object ParamMap

    Permalink
  13. object ProxyCredentials extends Serializable

    Permalink
  14. object Request

    Permalink
  15. object RequestBuilder

    Permalink

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

  16. object RequestConfig extends Serializable

    Permalink
  17. object Response

    Permalink
  18. object SpnegoAuthenticator

    Permalink

    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

    Permalink

    Scala aliases for HttpResponseStatus.

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

  20. object TlsFilter

    Permalink
  21. object Version

    Permalink

    Scala aliases for HttpVersion.

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

  22. package codec

    Permalink
  23. package filter

    Permalink
  24. package netty

    Permalink
  25. package path

    Permalink
  26. package service

    Permalink
  27. package util

    Permalink

Ungrouped