Package burp.api.montoya.http.message
Interface HttpHeader
public interface HttpHeader
Burp HTTP header able to retrieve to hold details about an HTTP header.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpHeader
httpHeader
(String header) Create a new instance of HttpHeader from aString
header representation.static HttpHeader
httpHeader
(String name, String value) Create a new instance ofHttpHeader
from name and value.name()
toString()
value()
-
Method Details
-
name
String name()- Returns:
- The name of the header.
-
value
String value()- Returns:
- The value of the header.
-
toString
String toString() -
httpHeader
Create a new instance ofHttpHeader
from name and value.- Parameters:
name
- The name of the header.value
- The value of the header.- Returns:
- A new
HttpHeader
instance.
-
httpHeader
Create a new instance of HttpHeader from aString
header representation. It will be parsed according to the HTTP/1.1 specification for headers.- Parameters:
header
- TheString
header representation.- Returns:
- A new
HttpHeader
instance.
-