public class HttpClient
Modifier and Type | Field |
---|---|
String |
_host
|
HttpHeaders |
_headers
|
INetSocket |
_socket
|
Modifier and Type | Constructor / Static Method |
---|---|
internal HttpClient |
assign(INetSocket socket, String host)
|
Modifier and Type | Constructor / Static Method |
---|---|
Task<net'http'HttpClient> |
openAsync(Uri uri)
|
Task<net'http'HttpClient> |
openAsync(String url)
|
|
open(Uri uri)
|
|
open(String url)
|
Modifier and Type | Property |
---|---|
get HttpHeaders |
Headers()
|
Modifier and Type | Method |
---|---|
Task<net'http'HttpResponse> |
getAsync()
|
Task<net'http'HttpResponse> |
getAsync(String path)
|
Task<net'http'HttpResponse> |
postAsync(String path, HttpRequest request)
|
HttpResponse |
get()
|
HttpResponse |
get(String path)
|
HttpResponse |
post(HttpRequest request)
|
HttpResponse |
post(String path, HttpRequest request)
|
|
close()
|
public class HttpException
Modifier and Type | Constructor / Static Method |
---|---|
HttpException |
new(String s)
|
public class HttpHeaders
Modifier and Type | Field |
---|---|
List<system'collections'Tuple<system'String,system'String>> |
_headers
|
Modifier and Type | Constructor / Static Method |
---|---|
internal HttpHeaders |
assign(List<system'collections'Tuple<system'String,system'String>> headers)
|
HttpHeaders |
constructor()
|
Modifier and Type | Constructor / Static Method |
---|---|
HttpHeaders |
combine(HttpHeaders headers1, HttpHeaders headers2)
|
Modifier and Type | Property |
---|---|
get internal List<system'collections'Tuple<system'String,system'String>> |
List()
|
get IntNumber |
Length()
|
get String |
Value()
|
public class HttpRequest
Modifier and Type | Field |
---|---|
MemoryBuffer |
_buffer
|
HttpHeaders |
_headers
|
Modifier and Type | Constructor / Static Method |
---|---|
HttpRequest |
new(system'ByteNumber[] body, IntNumber length)
|
Modifier and Type | Property |
---|---|
get HttpHeaders |
Headers()
|
get IntNumber |
ContentLength()
|
get String |
Content()
|
public class HttpResponse
Modifier and Type | Field |
---|---|
NetworkStream |
_stream
|
MemoryBuffer |
_buffer
|
HttpHeaders |
_headers
|
String |
_protocol
|
IntNumber |
_statusCode
|
String |
_statusText
|
Modifier and Type | Constructor / Static Method |
---|---|
internal HttpResponse |
assign(NetworkStream stream)
|
Modifier and Type | Property |
---|---|
get String |
StatusText()
|
get IntNumber |
StatusCode()
|
get HttpHeaders |
Headers()
|
Modifier and Type | Method |
---|---|
internal Task |
readHeaderAsync()
|
internal |
readHeader()
|
Task<system'String> |
readAsStringAsync()
|
String |
readAsString()
|
public class SocketFactory
Modifier and Type | Constructor / Static Method |
---|---|
private |
function:#class_init()
|
|
assignHttpsFactory(INetSocketFactory factory)
|
|
assignHttpFactory(INetSocketFactory factory)
|
INetSocket |
openSocket(Uri uri)
|
public class Uri
Modifier and Type | Field |
---|---|
String |
_scheme
|
String |
_host
|
String |
_port
|
String |
_path
|
String |
_query
|
Modifier and Type | Constructor / Static Method |
---|---|
Uri |
constructor(String url)
|
Uri |
parse(String url)
|
Modifier and Type | Property |
---|---|
get String |
Scheme()
|
get String |
Host()
|
get String |
PortValue()
|
get ShortNumber |
Port()
|
get String |
Path()
|
get String |
Query()
|
Modifier and Type | Name |
public |
SocketFactory#initializer$inline0
|
---|