org.mashupbots.socko.webserver

HttpConfig

case class 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) 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. HttpConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
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 clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. 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.

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

    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

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

    Definition Classes
    Any
  14. val maxChunkSizeInBytes: Int

    Maximum size of HTTP chunks.

    Maximum size of HTTP chunks. Defaults to 8192 bytes.

  15. 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.

  16. val maxHeaderSizeInBytes: Int

    Maximum size of HTTP headers.

    Maximum size of HTTP headers. Defaults to 8192 bytes.

  17. val maxInitialLineLength: Int

    Maximum size the initial line.

    Maximum size the initial line. Defaults to 4096 characters.

  18. val maxLengthInBytes: Int

  19. val maxLengthInMB: Int

    Maximum size of HTTP request in megabytes.

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

  20. 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.

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

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

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

    Definition Classes
    AnyRef
  24. val spdyEnabled: Boolean

    Support SPDY protocol or not.

    Support SPDY protocol or not. Defaults to false.

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped