public static class ExtendHttpResponseHeaderValueRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ExtendHttpResponseHeaderValueRule |
build() |
ExtendHttpResponseHeaderValueRule.Builder |
copy(ExtendHttpResponseHeaderValueRule model) |
ExtendHttpResponseHeaderValueRule.Builder |
header(String header)
A header name that conforms to RFC 7230.
|
ExtendHttpResponseHeaderValueRule.Builder |
prefix(String prefix)
A string to prepend to the header value.
|
ExtendHttpResponseHeaderValueRule.Builder |
suffix(String suffix)
A string to append to the header value.
|
public ExtendHttpResponseHeaderValueRule.Builder header(String header)
A header name that conforms to RFC 7230.
Example: example_header_name
header
- the value to setpublic 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
prefix
- the value to setpublic 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
suffix
- the value to setpublic ExtendHttpResponseHeaderValueRule build()
public ExtendHttpResponseHeaderValueRule.Builder copy(ExtendHttpResponseHeaderValueRule model)
Copyright © 2016–2024. All rights reserved.