Example usage for Java com.squareup.okhttp HttpUrl fields, constructors, methods, implement or subclass
The text is from its open source code.
String | scheme Either "http" or "https". |
String | host Canonical hostname. |
int | port Either 80, 443 or a user-specified port. |
List | pathSegments A list of canonical path segments. |
String | url Canonical URL. |
int | defaultPort(String scheme) Returns 80 if scheme.equals("http") , 443 if scheme.equals("https") and -1 otherwise. |
String | encodedFragment() |
String | encodedPath() Returns the entire path of this URL, encoded for use in HTTP resource resolution. |
List | encodedPathSegments() |
String | encodedQuery() Returns the query of this URL, encoded for use in HTTP resource resolution. |
HttpUrl | get(URL url) Returns an HttpUrl for url if its protocol is http or https , or null if it has any other protocol. |
HttpUrl | get(URI uri) |
boolean | isHttps() |
Builder | newBuilder() |
HttpUrl | parse(String url) Returns a new HttpUrl representing url if it is a well-formed HTTP or HTTPS URL, or null if it isn't. |
String | query() |
String | queryParameterName(int index) |
String | queryParameterValue(int index) |
int | querySize() |
HttpUrl | resolve(String link) Returns the URL that would be retrieved by following link from this URL. |
String | toString() |