Module swim.io.http
Package swim.io.http

Class HttpSettings

  • All Implemented Interfaces:
    swim.codec.Debug

    public class HttpSettings
    extends Object
    implements swim.codec.Debug
    HTTP configuration parameters.
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpSettings​(swim.io.SocketSettings socketSettings, int maxMessageSize)  
    • Field Detail

      • socketSettings

        protected final swim.io.SocketSettings socketSettings
      • maxMessageSize

        protected final int maxMessageSize
    • Constructor Detail

      • HttpSettings

        public HttpSettings​(swim.io.SocketSettings socketSettings,
                            int maxMessageSize)
    • Method Detail

      • socketSettings

        public final swim.io.SocketSettings socketSettings()
        Returns the socket configuration.
      • socketSettings

        public HttpSettings socketSettings​(swim.io.SocketSettings socketSettings)
        Returns a copy of these HttpSettings configured with the given socketSettings.
      • tcpSettings

        public final swim.io.TcpSettings tcpSettings()
        Returns the TCP socket configuration.
      • tcpSettings

        public HttpSettings tcpSettings​(swim.io.TcpSettings tcpSettings)
        Returns a copy of these HttpSettings configured with the given tcpSettings.
      • tlsSettings

        public final swim.io.TlsSettings tlsSettings()
        Returns the TLS socket configuration.
      • tlsSettings

        public HttpSettings tlsSettings​(swim.io.TlsSettings tlsSettings)
        Returns a copy of these HttpSettings configured with the given tlsSettings.
      • maxMessageSize

        public int maxMessageSize()
        Returns the maximum size in bytes on the wire of an HTTP request or response message + entity.
      • maxMessageSize

        public HttpSettings maxMessageSize​(int maxMessageSize)
        Returns a copy of these HttpSettings configured with the given maxMessageSize limit on HTTP message + entity sizes.
      • copy

        protected HttpSettings copy​(swim.io.SocketSettings socketSettings,
                                    int maxMessageSize)
        Returns a new HttpSettings instance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings.
      • toValue

        public swim.structure.Value toValue()
        Returns a structural Value representing these HttpSettings.
      • canEqual

        public boolean canEqual​(Object other)
        Returns true if these HttpSettings can possibly equal some other object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public void debug​(swim.codec.Output<?> output)
        Specified by:
        debug in interface swim.codec.Debug
      • standard

        public static HttpSettings standard()
        Returns the default HttpSettings instance.
      • from

        public static HttpSettings from​(swim.io.SocketSettings socketSettings)
      • form

        @Kind
        public static swim.structure.Form<HttpSettings> form()
        Returns the structural Form of HttpSettings.