Class ExtendHttpResponseHeaderValueRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • prefix

        public ExtendHttpResponseHeaderValueRule.Builder prefix​(String prefix)
        A string to prepend to the header value.

        The resulting header value must still conform to RFC 7230. With the following exceptions: * value cannot contain $ * value cannot contain patterns like {variable_name}. They are reserved for future extensions. Currently, such values are invalid.

        Example: example_prefix_value

        Parameters:
        prefix - the value to set
        Returns:
        this builder
      • suffix

        public ExtendHttpResponseHeaderValueRule.Builder suffix​(String suffix)
        A string to append to the header value.

        The resulting header value must still conform to RFC 7230. With the following exceptions: * value cannot contain $ * value cannot contain patterns like {variable_name}. They are reserved for future extensions. Currently, such values are invalid.

        Example: example_suffix_value

        Parameters:
        suffix - the value to set
        Returns:
        this builder