public class Http extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AFTER
HTTP Method AFTER
|
static String |
ALL
HTTP Method ALL
|
static String |
BEFORE
HTTP Method BEFORE
|
static String |
CONNECT
HTTP Method CONNECT
|
static int |
DEFAULT_INITIAL_WINDOW_SIZE
From the HTTP/2 specs, the default initial window size for all streams is 64 KiB.
|
static String |
DELETE
HTTP Method DELETE
|
static int |
ENABLE_PUSH
HTTP/2: The peer must not send a PUSH_PROMISE frame when this is 0.
|
static String |
GET
HTTP Method GET
|
static String |
HEAD
HTTP Method HEAD
|
static int |
HEADER_TABLE_SIZE
HTTP/2: Size in bytes of the table used to decode the sender's header blocks.
|
static String |
HTTP
The http
|
static int |
HTTP_ACCEPTED
HTTP Status-Code 202: Accepted.
|
static int |
HTTP_BAD_GATEWAY
HTTP Status-Code 502: Bad Gateway.
|
static int |
HTTP_BAD_METHOD
HTTP Status-Code 405: Method Not Allowed.
|
static int |
HTTP_BAD_REQUEST
HTTP Status-Code 400: Bad Request.
|
static int |
HTTP_CLIENT_TIMEOUT
HTTP Status-Code 408: Request Time-Out.
|
static int |
HTTP_CONFLICT
HTTP Status-Code 409: Conflict.
|
static int |
HTTP_CONTINUE
HTTP Status-Code 100: Continue.
|
static int |
HTTP_CREATED
HTTP Status-Code 201: Created.
|
static int |
HTTP_ENTITY_TOO_LARGE
HTTP Status-Code 413: Request Entity Too Large.
|
static int |
HTTP_FORBIDDEN
HTTP Status-Code 403: Forbidden.
|
static int |
HTTP_GATEWAY_TIMEOUT
HTTP Status-Code 504: Gateway Timeout.
|
static int |
HTTP_GONE
HTTP Status-Code 410: Gone.
|
static String |
HTTP_HOST_IPV4
The IPV4 127.0.0.1
|
static String |
HTTP_HOST_LOCAL
The localhost
|
static int |
HTTP_INTERNAL_ERROR
HTTP Status-Code 500: Internal Server Error.
|
static int |
HTTP_LENGTH_REQUIRED
HTTP Status-Code 411: Length Required.
|
static int |
HTTP_MOVED_PERM
HTTP Status-Code 301: Moved Permanently.
|
static int |
HTTP_MOVED_TEMP
HTTP Status-Code 302: Temporary Redirect.
|
static int |
HTTP_MULT_CHOICE
HTTP Status-Code 300: Multiple Choices.
|
static int |
HTTP_NO_CONTENT
HTTP Status-Code 204: No Content.
|
static int |
HTTP_NOT_ACCEPTABLE
HTTP Status-Code 406: Not Acceptable.
|
static int |
HTTP_NOT_AUTHORITATIVE
HTTP Status-Code 203: Non-Authoritative Information.
|
static int |
HTTP_NOT_FOUND
HTTP Status-Code 404: Not Found.
|
static int |
HTTP_NOT_IMPLEMENTED
HTTP Status-Code 501: Not Implemented.
|
static int |
HTTP_NOT_MODIFIED
HTTP Status-Code 304: Not Modified.
|
static int |
HTTP_OK
HTTP Status-Code 200: OK.
|
static int |
HTTP_PARTIAL
HTTP Status-Code 206: Partial Content.
|
static int |
HTTP_PAYMENT_REQUIRED
HTTP Status-Code 402: Payment Required.
|
static int |
HTTP_PERM_REDIRECT
HTTP Status-Code 308: Use perm Redirect.
|
static int |
HTTP_PRECON_FAILED
HTTP Status-Code 412: Precondition Failed.
|
static String |
HTTP_PREFIX
The prefix http
|
static int |
HTTP_PROXY_AUTH
HTTP Status-Code 407: Proxy Authentication Required.
|
static int |
HTTP_REQ_TOO_LONG
HTTP Status-Code 414: Request-URI Too Large.
|
static int |
HTTP_RESET
HTTP Status-Code 205: Reset Content.
|
static int |
HTTP_SEE_OTHER
HTTP Status-Code 303: See Other.
|
static int |
HTTP_SWITCHING_PROTOCOL
HTTP Status-Code 101: Switching Protocols.
|
static int |
HTTP_TEMP_REDIRECT
HTTP Status-Code 307: Temporary Redirect.
|
static int |
HTTP_UNAUTHORIZED
HTTP Status-Code 401: Unauthorized.
|
static int |
HTTP_UNAVAILABLE
HTTP Status-Code 503: Service Unavailable.
|
static int |
HTTP_UNSUPPORTED_TYPE
HTTP Status-Code 415: Unsupported Media Type.
|
static int |
HTTP_USE_PROXY
HTTP Status-Code 305: Use Proxy.
|
static int |
HTTP_VERSION
HTTP Status-Code 505: HTTP Version Not Supported.
|
static String |
HTTPS
The https
|
static String |
HTTPS_PREFIX
The prefix https
|
static int |
INITIAL_WINDOW_SIZE
Window size in bytes.
|
static int |
MAX_CONCURRENT_STREAMS
Sender's maximum number of concurrent streams.
|
static int |
MAX_FRAME_SIZE
HTTP/2: Size in bytes of the largest frame payload the sender will accept.
|
static int |
MAX_HEADER_LIST_SIZE
HTTP/2: Advisory only.
|
static String |
MOVE
HTTP Method MOVE
|
static String |
OPTIONS
HTTP Method OPTIONS
|
static String |
PATCH
HTTP Method PATCH
|
static String |
POST
HTTP Method POST
|
static String |
PROPFIND
HTTP Method PROPFIND
|
static String |
PROPPATCH
HTTP Method PROPPATCH
|
static String |
PUT
HTTP Method PUT
|
static String |
REPORT
HTTP Method REPORT
|
static String |
RESPONSE_STATUS_UTF8
The use status
|
static String |
SSL
HTTP SSL
|
static String |
TARGET_AUTHORITY_UTF8
The use authority
|
static String |
TARGET_METHOD_UTF8
The use method
|
static String |
TARGET_PATH_UTF8
The use path
|
static String |
TARGET_SCHEME_UTF8
The use scheme
|
static String |
TLS
HTTP TLS
|
static String |
TLS_12
HTTP TLS v1.2
|
static String |
TRACE
HTTP Method TRACE
|
static String |
WS
The https
|
static String |
WS_PREFIX
The prefix ws
|
static String |
WSS
The https
|
static String |
WSS_PREFIX
The prefix wss
|
| Constructor and Description |
|---|
Http() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isHttp(String url)
是否为http协议
|
static boolean |
isHttps(String url)
是否为https协议
|
public static final String HTTP
public static final String HTTPS
public static final String WS
public static final String WSS
public static final String HTTP_PREFIX
public static final String HTTPS_PREFIX
public static final String WS_PREFIX
public static final String WSS_PREFIX
public static final String GET
public static final String POST
public static final String PUT
public static final String PATCH
public static final String DELETE
public static final String HEAD
public static final String TRACE
public static final String CONNECT
public static final String OPTIONS
public static final String BEFORE
public static final String AFTER
public static final String MOVE
public static final String PROPPATCH
public static final String REPORT
public static final String PROPFIND
public static final String ALL
public static final String SSL
public static final String TLS
public static final String TLS_12
public static final String RESPONSE_STATUS_UTF8
public static final String TARGET_METHOD_UTF8
public static final String TARGET_PATH_UTF8
public static final String TARGET_SCHEME_UTF8
public static final String TARGET_AUTHORITY_UTF8
public static final String HTTP_HOST_IPV4
public static final String HTTP_HOST_LOCAL
public static final int HTTP_CONTINUE
public static final int HTTP_SWITCHING_PROTOCOL
public static final int HTTP_OK
public static final int HTTP_CREATED
public static final int HTTP_ACCEPTED
public static final int HTTP_NOT_AUTHORITATIVE
public static final int HTTP_NO_CONTENT
public static final int HTTP_RESET
public static final int HTTP_PARTIAL
public static final int HTTP_MULT_CHOICE
public static final int HTTP_MOVED_PERM
public static final int HTTP_MOVED_TEMP
public static final int HTTP_SEE_OTHER
public static final int HTTP_NOT_MODIFIED
public static final int HTTP_USE_PROXY
public static final int HTTP_TEMP_REDIRECT
public static final int HTTP_PERM_REDIRECT
public static final int HTTP_BAD_REQUEST
public static final int HTTP_UNAUTHORIZED
public static final int HTTP_PAYMENT_REQUIRED
public static final int HTTP_FORBIDDEN
public static final int HTTP_NOT_FOUND
public static final int HTTP_BAD_METHOD
public static final int HTTP_NOT_ACCEPTABLE
public static final int HTTP_PROXY_AUTH
public static final int HTTP_CLIENT_TIMEOUT
public static final int HTTP_CONFLICT
public static final int HTTP_GONE
public static final int HTTP_LENGTH_REQUIRED
public static final int HTTP_PRECON_FAILED
public static final int HTTP_ENTITY_TOO_LARGE
public static final int HTTP_REQ_TOO_LONG
public static final int HTTP_UNSUPPORTED_TYPE
public static final int HTTP_INTERNAL_ERROR
public static final int HTTP_NOT_IMPLEMENTED
public static final int HTTP_BAD_GATEWAY
public static final int HTTP_UNAVAILABLE
public static final int HTTP_GATEWAY_TIMEOUT
public static final int HTTP_VERSION
public static final int DEFAULT_INITIAL_WINDOW_SIZE
public static final int HEADER_TABLE_SIZE
public static final int ENABLE_PUSH
public static final int MAX_CONCURRENT_STREAMS
public static final int MAX_FRAME_SIZE
public static final int MAX_HEADER_LIST_SIZE
public static final int INITIAL_WINDOW_SIZE
Copyright © 2020. All rights reserved.