public class HttpUtils extends Object
| 构造器和说明 |
|---|
HttpUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
get(Endpoints endpoints,
String suffix,
HttpHeader... headers)
get
|
static String |
get(String url,
HttpHeader... headers) |
static String |
post(Endpoints endpoints,
String suffix,
HttpHeader... headers)
post
|
static String |
post(Endpoints endpoints,
String suffix,
String body,
HttpHeader... headers) |
static String |
post(String url,
HttpHeader... headers) |
static String |
post(String url,
String body,
HttpHeader... headers) |
static String |
request(String url,
String body,
HttpMethod method,
HttpHeader... headers) |
public static String get(Endpoints endpoints, String suffix, HttpHeader... headers)
public static String get(String url, HttpHeader... headers)
public static String post(Endpoints endpoints, String suffix, HttpHeader... headers)
public static String post(Endpoints endpoints, String suffix, String body, HttpHeader... headers)
public static String post(String url, HttpHeader... headers)
public static String post(String url, String body, HttpHeader... headers)
public static String request(String url, String body, HttpMethod method, HttpHeader... headers)
Copyright © 2021. All rights reserved.