public static class HttpHeaderOption.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HttpHeaderOption |
build() |
HttpHeaderOption.Builder |
clone() |
String |
getHeaderName()
The name of the header.
|
String |
getHeaderValue()
The value of the header to add.
|
Boolean |
getReplace()
If false, headerValue is appended to any values that already exist for the header.
|
HttpHeaderOption.Builder |
mergeFrom(HttpHeaderOption other) |
HttpHeaderOption.Builder |
setHeaderName(String headerName)
The name of the header.
|
HttpHeaderOption.Builder |
setHeaderValue(String headerValue)
The value of the header to add.
|
HttpHeaderOption.Builder |
setReplace(Boolean replace)
If false, headerValue is appended to any values that already exist for the header.
|
public HttpHeaderOption.Builder mergeFrom(HttpHeaderOption other)
public String getHeaderName()
public HttpHeaderOption.Builder setHeaderName(String headerName)
public String getHeaderValue()
public HttpHeaderOption.Builder setHeaderValue(String headerValue)
public Boolean getReplace()
public HttpHeaderOption.Builder setReplace(Boolean replace)
public HttpHeaderOption build()
public HttpHeaderOption.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.