public class CustomHttpHeader extends Object
| Constructor and Description |
|---|
CustomHttpHeader()
Default Constructor
|
CustomHttpHeader(CustomHttpHeader other)
Default copy constructor
|
CustomHttpHeader(io.vertx.core.json.JsonObject json)
Creates from JSON
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getValue() |
CustomHttpHeader |
setName(String name)
Set the name of the request header.
|
CustomHttpHeader |
setValue(String value)
Set the value of the request header.
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public CustomHttpHeader()
public CustomHttpHeader(CustomHttpHeader other)
other - the customHeader configuration to copypublic CustomHttpHeader(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public CustomHttpHeader setName(String name)
name - name of the custom headerpublic CustomHttpHeader setValue(String value)
value - value of the custom headerpublic String getName()
public String getValue()
Copyright © 2016–2020. All rights reserved.