Skip to content

Commit

Permalink
Deprecate vertx.disableHttpHeadersValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed May 17, 2024
1 parent b5c63e6 commit ba5acd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/vertx/core/http/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
public interface HttpHeaders {

/** JVM system property that disables HTTP headers validation, don't use this in production. */
@Deprecated
String DISABLE_HTTP_HEADERS_VALIDATION_PROP_NAME = SysProps.DISABLE_HTTP_HEADERS_VALIDATION.name;

/** Constant that disables HTTP headers validation, this is a constant so the JIT can eliminate validation code. */
@Deprecated
boolean DISABLE_HTTP_HEADERS_VALIDATION = SysProps.DISABLE_HTTP_HEADERS_VALIDATION.getBoolean();

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/io/vertx/core/impl/SysProps.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,19 @@ public enum SysProps {

/**
* Default value of {@link io.vertx.core.file.FileSystemOptions#DEFAULT_FILE_CACHING_ENABLED}
*
*/
DISABLE_FILE_CACHING("vertx.disableFileCaching"),

/**
* Default value of {@link io.vertx.core.file.FileSystemOptions#DEFAULT_CLASS_PATH_RESOLVING_ENABLED}
*
*/
DISABLE_FILE_CP_RESOLVING("vertx.disableFileCPResolving"),

/**
* Default value of {@link io.vertx.core.file.FileSystemOptions#DEFAULT_FILE_CACHING_DIR}
*
*/
FILE_CACHE_DIR("vertx.cacheDirBase") {
@Override
Expand Down

0 comments on commit ba5acd2

Please sign in to comment.