public interface HeadersHandler
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value)
Adds a request header with the given name and value.
|
String |
getHeader(String name)
Returns the value of the specified request header as a String.
|
Set<String> |
getHeaderNames()
Returns a set of all the header names present in the request.
|
String |
removeHeader(String name)
Removes the header with given name and returns the value of removed header
|
void addHeader(String name, String value)
name
- The header namevalue
- The header valueString getHeader(String name)
name
- The header nameSet<String> getHeaderNames()
Copyright © 2019. All rights reserved.