org.mashupbots.socko.webserver

HttpConfig

case class HttpConfig(maxLengthInMB: Int, maxInitialLineLength: Int, maxHeaderSizeInBytes: Int, maxChunkSizeInBytes: Int, aggreateChunks: Boolean, minCompressibleContentSizeInBytes: Int, maxCompressibleContentSizeInBytes: Int, compressibleContentTypes: List[String], spdyEnabled: Boolean) extends Product with Serializable

HTTP protocol handling configuration

HTTP compression parameters only applies to HTTP request and responses and not web sockets.

maxLengthInMB

Maximum size of HTTP request in megabytes. Defaults to 4MB.

maxInitialLineLength

Maximum size the initial line. Defaults to 4096 characters.

maxHeaderSizeInBytes

Maximum size of HTTP headers. Defaults to 8192 bytes.

maxChunkSizeInBytes

Maximum size of HTTP chunks. Defaults to 8192 bytes.

aggreateChunks

Flag to indicate if we want to aggregate chunks. If false, your processor actors must be able to handle HttpChunkProcessingContext

minCompressibleContentSizeInBytes

Minimum number of bytes before HTTP content will be compressed if requested by the client. Set to -1 to turn off compression for all files; 0 to make all content compressible.

maxCompressibleContentSizeInBytes

Maximum number of bytes before HTTP content will be not be compressed if requested by the client. Defaults to 1MB otherwise too much CPU maybe taken up for compression.

compressibleContentTypes

List of MIME types of that can be compressed. If not supplied, defaults to HTML, CSS, JSON, XML and Javascript files.

spdyEnabled

Support SPDY protocol or not. Defaults to false.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HttpConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpConfig(config: Config, prefix: String)

    Read configuration from AKKA's application.conf.

    Read configuration from AKKA's application.conf. Supply default values to use if setting not present

  2. new HttpConfig(maxLengthInMB: Int = 4, maxInitialLineLength: Int = 4096, maxHeaderSizeInBytes: Int = 8192, maxChunkSizeInBytes: Int = 8192, aggreateChunks: Boolean = true, minCompressibleContentSizeInBytes: Int = 1024, maxCompressibleContentSizeInBytes: Int = 1.*(1024).*(1024), compressibleContentTypes: List[String] = ..., spdyEnabled: Boolean = false)

    maxLengthInMB

    Maximum size of HTTP request in megabytes. Defaults to 4MB.

    maxInitialLineLength

    Maximum size the initial line. Defaults to 4096 characters.

    maxHeaderSizeInBytes

    Maximum size of HTTP headers. Defaults to 8192 bytes.

    maxChunkSizeInBytes

    Maximum size of HTTP chunks. Defaults to 8192 bytes.

    aggreateChunks

    Flag to indicate if we want to aggregate chunks. If false, your processor actors must be able to handle HttpChunkProcessingContext

    minCompressibleContentSizeInBytes

    Minimum number of bytes before HTTP content will be compressed if requested by the client. Set to -1 to turn off compression for all files; 0 to make all content compressible.

    maxCompressibleContentSizeInBytes

    Maximum number of bytes before HTTP content will be not be compressed if requested by the client. Defaults to 1MB otherwise too much CPU maybe taken up for compression.

    compressibleContentTypes

    List of MIME types of that can be compressed. If not supplied, defaults to HTML, CSS, JSON, XML and Javascript files.

    spdyEnabled

    Support SPDY protocol or not. Defaults to false.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val aggreateChunks: Boolean

    Flag to indicate if we want to aggregate chunks.

    Flag to indicate if we want to aggregate chunks. If false, your processor actors must be able to handle HttpChunkProcessingContext

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def canEqual(arg0: Any): Boolean

    Definition Classes
    HttpConfig → Equals
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. val compressibleContentTypes: List[String]

    List of MIME types of that can be compressed.

    List of MIME types of that can be compressed. If not supplied, defaults to HTML, CSS, JSON, XML and Javascript files.

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    HttpConfig → Equals → AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    HttpConfig → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val maxChunkSizeInBytes: Int

    Maximum size of HTTP chunks.

    Maximum size of HTTP chunks. Defaults to 8192 bytes.

  18. val maxCompressibleContentSizeInBytes: Int

    Maximum number of bytes before HTTP content will be not be compressed if requested by the client.

    Maximum number of bytes before HTTP content will be not be compressed if requested by the client. Defaults to 1MB otherwise too much CPU maybe taken up for compression.

  19. val maxHeaderSizeInBytes: Int

    Maximum size of HTTP headers.

    Maximum size of HTTP headers. Defaults to 8192 bytes.

  20. val maxInitialLineLength: Int

    Maximum size the initial line.

    Maximum size the initial line. Defaults to 4096 characters.

  21. val maxLengthInBytes: Int

  22. val maxLengthInMB: Int

    Maximum size of HTTP request in megabytes.

    Maximum size of HTTP request in megabytes. Defaults to 4MB.

  23. val minCompressibleContentSizeInBytes: Int

    Minimum number of bytes before HTTP content will be compressed if requested by the client.

    Minimum number of bytes before HTTP content will be compressed if requested by the client. Set to -1 to turn off compression for all files; 0 to make all content compressible.

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def productArity: Int

    Definition Classes
    HttpConfig → Product
  28. def productElement(arg0: Int): Any

    Definition Classes
    HttpConfig → Product
  29. def productIterator: Iterator[Any]

    Definition Classes
    Product
  30. def productPrefix: String

    Definition Classes
    HttpConfig → Product
  31. val spdyEnabled: Boolean

    Support SPDY protocol or not.

    Support SPDY protocol or not. Defaults to false.

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    HttpConfig → AnyRef → Any
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any