Interface HttpService
public interface HttpService
Burp HTTP service providing details about an HTTP service, to which HTTP requests can be sent.
-
Method Summary
Modifier and TypeMethodDescriptionhost()static HttpServicehttpService(String baseUrl) Create a new instance ofHttpService.static HttpServicehttpService(String host, boolean secure) Create a new instance ofHttpService.static HttpServicehttpService(String host, int port, boolean secure) Create a new instance ofHttpService.Dynamically resolve the host to an IP address.intport()booleansecure()toString()
-
Method Details
-
host
String host()- Returns:
- The hostname or IP address for the service.
-
port
int port()- Returns:
- The port number for the service.
-
secure
boolean secure()- Returns:
- True if a secure protocol is used for the connection, false otherwise.
-
ipAddress
String ipAddress()Dynamically resolve the host to an IP address.- Returns:
- The IP address of the host.
-
toString
-
httpService
Create a new instance ofHttpService.- Parameters:
baseUrl- The URL for the service.- Returns:
- A new
HttpServiceinstance. - Throws:
IllegalArgumentException- If the provided URL is invalid.
-
httpService
Create a new instance ofHttpService.- Parameters:
host- The hostname or IP address for the service.secure- True if a secure connection is to be used.- Returns:
- A new
HttpServiceinstance.
-
httpService
Create a new instance ofHttpService.- Parameters:
host- The hostname or IP address for the service.port- The port number for the service.secure- True if a secure connection is to be used.- Returns:
- A new
HttpServiceinstance.
-