$.net.http
$.net.http
represents the http namespace with its fields.
Overview
Sample Usage
Classes
Classes |
Description |
Destination |
Contains metadata, for example, host name, port number and custom values. |
Client |
HTTP(s) Client for outbound connectivity. This client supports HTTP and HTTPs connections over HTTP or SOCKS proxy. |
Request |
Request class to be used with HTTP client. |
Functions
Function |
Description |
Returns |
readDestination(package, objectName) |
Returns the HTTP destination with the given name as a Destination object. |
$.net.http. Destination |
HTTP constants for methods
Name |
Description |
Type |
Default |
OPTIONS |
HTTP Method OPTIONS. |
number |
0 |
GET |
HTTP Method GET. |
number |
1 |
HEAD |
HTTP Method HEAD. |
number |
2 |
POST |
HTTP Method POST. |
number |
3 |
PUT |
HTTP Method PUT. |
number |
4 |
DEL |
HTTP Method DEL. |
number |
5 |
TRACE |
HTTP Method TRACE. |
number |
6 |
CONNECT |
HTTP Method CONNECT. |
number |
7 |
PATCH |
HTTP Method PATCH. |
number |
8 |
HTTP constants for status codes
Name |
Type |
Default |
CONTINUE |
number |
100 |
SWITCH_PROTOCOL |
number |
101 |
OK |
number |
200 |
CREATED |
number |
201 |
ACCEPTED |
number |
202 |
NON_AUTHORITATIVE |
number |
203 |
NO_CONTENT |
number |
204 |
RESET_CONTENT |
number |
205 |
PARTIAL_CONTENT |
number |
206 |
MULTIPLE_CHOICES |
number |
300 |
MOVED_PERMANENTLY |
number |
301 |
FOUND |
number |
302 |
SEE_OTHER |
number |
303 |
NOT_MODIFIED |
number |
304 |
USE_PROXY |
number |
305 |
TEMPORARY_REDIRECT |
number |
307 |
BAD_REQUEST |
number |
400 |
UNAUTHORIZED |
number |
401 |
PAYMENT_REQUIRED |
number |
402 |
FORBIDDEN |
number |
403 |
NOT_FOUND |
number |
404 |
METHOD_NOT_ALLOWED |
number |
405 |
NOT_ACCEPTABLE |
number |
406 |
PROXY_AUTH_REQUIRED |
number |
407 |
REQUEST_TIMEOUT |
number |
408 |
CONFLICT |
number |
409 |
GONE |
number |
410 |
LENGTH_REQUIRED |
number |
411 |
PRECONDITION_FAILED |
number |
412 |
REQUEST_ENTITY_TOO_LARGE |
number |
413 |
REQUEST_URI_TOO_LONG |
number |
414 |
UNSUPPORTED_MEDIA_TYPE |
number |
415 |
REQUESTED_RANGE_NOT_SATISFIABLE |
number |
416 |
EXPECTATION_FAILED |
number |
417 |
INTERNAL_SERVER_ERROR |
number |
500 |
NOT_YET_IMPLEMENTED |
number |
501 |
BAD_GATEWAY |
number |
502 |
SERVICE_UNAVAILABLE |
number |
503 |
GATEWAY_TIMEOUT |
number |
504 |
HTTP_VERSION_NOT_SUPPORTED |
number |
505 |