Class ServerSettings
java.lang.Object
org.apache.pekko.http.javadsl.settings.ServerSettings
- Direct Known Subclasses:
ServerSettings
Public API but not intended for subclassing
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSettingscreate(com.typesafe.config.Config config) static ServerSettingsstatic ServerSettingscreate(org.apache.pekko.actor.ActorSystem system) abstract booleanConfigures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext.abstract intabstract Hostabstract intabstract intabstract intabstract ParserSettingsabstract Stringabstract intabstract booleanabstract booleanabstract intabstract Iterable<org.apache.pekko.io.Inet.SocketOption>abstract scala.concurrent.duration.FiniteDurationabstract HttpResponseabstract ServerSettings.Timeoutsabstract booleanabstract booleanabstract WebSocketSettingswithBacklog(int newValue) withDefaultHostHeader(Host newValue) withDefaultHttpPort(int newValue) withDefaultHttpsPort(int newValue) withEnableHttp2(boolean newValue) withHttp2Settings(Http2ServerSettings newValue) withLogUnencryptedNetworkBytes(Optional<Object> newValue) withMaxConnections(int newValue) withParserSettings(ParserSettings newValue) withParsingErrorHandler(String newValue) withPipeliningLimit(int newValue) withRawRequestUriHeader(boolean newValue) withRemoteAddressAttribute(boolean newValue) withResponseHeaderSizeHint(int newValue) withServerHeader(Optional<Server> newValue) withSocketOptions(Iterable<org.apache.pekko.io.Inet.SocketOption> newValue) withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) withTimeouts(ServerSettings.Timeouts newValue) withTransparentHeadRequests(boolean newValue) withVerboseErrorMessages(boolean newValue) withWebsocketSettings(WebSocketSettings newValue)
-
Constructor Details
-
ServerSettings
public ServerSettings()
-
-
Method Details
-
create
-
create
-
create
-
getServerHeader
-
getTimeouts
-
getMaxConnections
public abstract int getMaxConnections() -
getPipeliningLimit
public abstract int getPipeliningLimit() -
getRemoteAddressAttribute
public abstract boolean getRemoteAddressAttribute() -
getRawRequestUriHeader
public abstract boolean getRawRequestUriHeader() -
getTransparentHeadRequests
public abstract boolean getTransparentHeadRequests() -
getVerboseErrorMessages
public abstract boolean getVerboseErrorMessages() -
getResponseHeaderSizeHint
public abstract int getResponseHeaderSizeHint() -
getBacklog
public abstract int getBacklog() -
getSocketOptions
-
getDefaultHostHeader
-
getWebsocketSettings
-
getParserSettings
-
getLogUnencryptedNetworkBytes
-
getHttp2Settings
-
getDefaultHttpPort
public abstract int getDefaultHttpPort() -
getDefaultHttpsPort
public abstract int getDefaultHttpsPort() -
getTerminationDeadlineExceededResponse
-
getParsingErrorHandler
-
getStreamCancellationDelay
public abstract scala.concurrent.duration.FiniteDuration getStreamCancellationDelay() -
enableHttp2
public abstract boolean enableHttp2()Configures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext. Otherwise binds as plain HTTP.- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withServerHeader
-
withTimeouts
-
withMaxConnections
-
withPipeliningLimit
-
withRemoteAddressAttribute
-
withRawRequestUriHeader
-
withTransparentHeadRequests
-
withVerboseErrorMessages
-
withResponseHeaderSizeHint
-
withBacklog
-
withSocketOptions
-
withDefaultHostHeader
-
withParserSettings
-
withWebsocketSettings
-
withLogUnencryptedNetworkBytes
-
withHttp2Settings
-
withDefaultHttpPort
-
withDefaultHttpsPort
-
withTerminationDeadlineExceededResponse
-
withParsingErrorHandler
-
withStreamCancellationDelay
public ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) -
withEnableHttp2
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-