-
public final class Headers.Builder
-
-
Method Summary
Modifier and Type Method Description Headers.Builderadd(String line)Add an header line containing a field name, a literal colon, and a value. Headers.Builderadd(String name, String value)Add a field with the specified value. Headers.BuilderremoveAll(String name)Headers.Builderset(String name, String value)Set a field with the specified value. Stringget(String name)Equivalent to {@code build().get(name)}, but potentially faster.Headersbuild()-
-
Method Detail
-
add
Headers.Builder add(String line)
Add an header line containing a field name, a literal colon, and a value.
-
add
Headers.Builder add(String name, String value)
Add a field with the specified value.
-
removeAll
Headers.Builder removeAll(String name)
-
set
Headers.Builder set(String name, String value)
Set a field with the specified value. If the field is not found, it is added. If the field isfound, the existing values are replaced.
-
-
-
-