public class ParseRequests extends Object
Modifier and Type | Method and Description |
---|---|
static ParseRequest |
get()
获取get请求
|
static ParseResponse |
get(String url)
get
|
static ParseResponse |
get(String url,
Map<String,?> params)
get
|
static ParseRequest |
post()
获取post请求
|
static ParseResponse |
post(String url)
post
|
static ParseResponse |
post(String url,
byte[] body)
post application/json
|
static ParseResponse |
post(String url,
Map<String,String> formParts)
post x-www-form-urlencoded
|
static ParseResponse |
post(String url,
String body)
post application/json
|
static ParseResponse |
post(String url,
String contentType,
byte[] body)
post
|
static ParseResponse |
post(String url,
String contentType,
String body)
post
|
public static ParseResponse get(String url)
url
- urlpublic static ParseResponse get(String url, Map<String,?> params)
url
- urlparams
- paramspublic static ParseResponse post(String url)
url
- urlpublic static ParseResponse post(String url, byte[] body)
url
- urlbody
- bodypublic static ParseResponse post(String url, String body)
url
- urlbody
- bodypublic static ParseResponse post(String url, String contentType, byte[] body)
url
- urlcontentType
- contentTypebody
- bodypublic static ParseResponse post(String url, String contentType, String body)
url
- urlcontentType
- contentTypebody
- bodypublic static ParseResponse post(String url, Map<String,String> formParts)
url
- urlformParts
- formPartspublic static ParseRequest get()
public static ParseRequest post()
Copyright © 2024. All rights reserved.