public class Endpoint extends Object
| Modifier and Type | Method and Description |
|---|---|
Request.Builder<?> |
delete() |
static Endpoint |
forAddress(InetSocketAddress address) |
static Endpoint |
forAddress(String protocol,
InetSocketAddress address) |
static Endpoint |
forHost(String host) |
static Endpoint |
forHost(String protocol,
String host) |
static Endpoint |
forHostAndPort(String host,
int port) |
static Endpoint |
forHostAndPort(String protocol,
String host,
int port) |
static Endpoint |
forURL(String urlStr) |
Request.Builder<?> |
get() |
URL |
getURL() |
Request.Builder<?> |
head() |
Request.BuilderWithBody<?> |
patch() |
Request.BuilderWithBody<?> |
post() |
Request.BuilderWithBody<?> |
put() |
Request.BuilderWithBody<?> |
request(RequestMethod.RequestMethodWithBody method) |
Request.Builder<?> |
request(RequestMethod.RequestMethodWithoutBody method) |
Endpoint |
resolve(String... children) |
public static final String HTTP
public static final String HTTPS
public Endpoint(URL url)
public static Endpoint forAddress(String protocol, InetSocketAddress address)
public static Endpoint forAddress(InetSocketAddress address)
public URL getURL()
public Request.Builder<?> request(RequestMethod.RequestMethodWithoutBody method)
public Request.BuilderWithBody<?> request(RequestMethod.RequestMethodWithBody method)
public Request.Builder<?> head()
public Request.Builder<?> get()
public Request.BuilderWithBody<?> post()
public Request.BuilderWithBody<?> put()
public Request.BuilderWithBody<?> patch()
public Request.Builder<?> delete()
Copyright © 2019. All rights reserved.