Interface HttpHeader
public interface HttpHeader
Burp HTTP header able to retrieve to hold details about an HTTP header.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpHeaderhttpHeader(byte[] name, byte[] value) Create a new instance ofHttpHeaderfrom name and value.static HttpHeaderhttpHeader(String header) Create a new instance of HttpHeader from aStringheader representation.static HttpHeaderhttpHeader(String name, String value) Create a new instance ofHttpHeaderfrom 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
-
httpHeader
Create a new instance ofHttpHeaderfrom name and value.- Parameters:
name- The name of the header.value- The value of the header.- Returns:
- A new
HttpHeaderinstance.
-
httpHeader
Create a new instance ofHttpHeaderfrom name and value.- Parameters:
name- The name of the header.value- The value of the header.- Returns:
- A new
HttpHeaderinstance.
-
httpHeader
Create a new instance of HttpHeader from aStringheader representation. It will be parsed according to the HTTP/1.1 specification for headers.- Parameters:
header- TheStringheader representation.- Returns:
- A new
HttpHeaderinstance.
-