package http
- Alphabetic
- Public
- All
Type Members
-
class
Cookie
extends AnyRef
Scala wrapper around Netty cookies.
-
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
- case class FileElement (name: String, content: Buf, contentType: Option[String] = None, filename: Option[String] = None) extends FormElement with Product with Serializable
- sealed abstract class FormElement extends AnyRef
-
abstract
class
HeaderMap
extends Map[String, String] with MapLike[String, String, HeaderMap]
Mutable message headers map.
-
class
MapParamMap
extends ParamMap
Map-backed ParamMap.
-
abstract
class
Message
extends AnyRef
Rich Message
Rich Message
Base class for Request and Response. There are both input and output methods, though only one set of methods should be used.
-
sealed abstract
class
Method
extends AnyRef
Represents the HTTP method.
Represents the HTTP method.
For Java-friendly enums, see com.twitter.finagle.http.Methods.
-
abstract
class
ParamMap
extends Map[String, String] with MapLike[String, String, ParamMap]
Request parameter map.
Request parameter map.
This is a persistent (immutable) multi-map.
Use
getAll()to get all values for a key. - case class ProxyCredentials (username: String, password: String) extends Product with Serializable
-
abstract
class
Request
extends Message
Rich HttpRequest.
Rich HttpRequest.
Use RequestProxy to create an even richer subclass.
- class RequestBuilder [HasUrl, HasForm] extends AnyRef
-
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.
-
abstract
class
RequestProxy
extends Request
Proxy for Request.
Proxy for Request. This can be used to create a richer request class that wraps Request without exposing the underlying netty http type.
-
abstract
class
Response
extends Message
Rich HttpResponse
- abstract class ResponseProxy extends Response
- case class SimpleElement (name: String, content: String) extends FormElement with Product with Serializable
-
case class
Status
(code: Int) extends Product with Serializable
Represents an HTTP status code.
Represents an HTTP status code.
The set of commonly known HTTP status codes have an associated reason phrase (see
reasons). We don't provide a way to set the reason phrase because:- it simplifies construction (users only supply the code) - it avoids the need to validate user-defined reason phrases - it omits the possibility of statuses with duplicate reason phrases
The only downside is that we lose the ability to create custom statuses with "vanity" reason phrases, but this should be tolerable.
For Java-friendly enums, see com.twitter.finagle.http.Statuses.
-
final
class
TooLongMessageException
extends ChannelException with FailureFlags[TooLongMessageException]
The Message was too long to be handled correctly
-
sealed abstract
class
Version
extends AnyRef
Represents the HTTP version.
Represents the HTTP version.
For Java-friendly enums, see com.twitter.finagle.http.Versions.
-
class
MapHeaderMap
extends HeaderMap
Mutable-Map-backed HeaderMap
Mutable-Map-backed HeaderMap
- Annotations
- @deprecated
- Deprecated
(Since version 2017-02-01) This is becoming private. Use
HeaderMap.apply(..)instead.
Value Members
-
object
EmptyParamMap
extends ParamMap
Empty ParamMap
- object Fields
- object HeaderMap
- object MapHeaderMap
- object MapParamMap
- object MediaType
- object Message
- object Method
- object ParamMap
- object ProxyCredentials extends Serializable
- object Request
-
object
RequestBuilder
Factory for com.twitter.finagle.http.RequestBuilder instances
- object RequestConfig extends Serializable
- object Response
- object Status extends Serializable
- object TooLongMessageException extends Serializable
- object Version