EgretDoc
Back to Home
Location:system/net.https

Module

Module documentation.

modulenet.https

Classes

Classes and inheritance.

Functions

Free functions and class methods.

functionnet.https::request
Signaturefunc request(method: String, raw_url: String, data: String) -> String, ErrCode
func request(method: String, raw_url: String, data: String) -> String, ErrCode {
    let u, u_err = net.url.parse(raw_url);
    if u_err != std.OK {
@briefProvides the system library operation `request`.
@detailsExecutes the `request` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • methodHTTP method or dispatch method name used by the operation.
  • raw_urlURL string exactly as supplied by the caller before parsing or escaping.
  • dataInput or output data buffer.
@returnReturns `String, ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
functionnet.https::get
Signaturefunc get(raw_url: String) -> String, ErrCode
func get(raw_url: String) -> String, ErrCode {
    return request("GET", raw_url, "");
}
@briefReads the element for `get`.
@detailsExecutes the `get` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • raw_urlURL string exactly as supplied by the caller before parsing or escaping.
@returnReturns `String, ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
functionnet.https::post
Signaturefunc post(raw_url: String, data: String) -> String, ErrCode
func post(raw_url: String, data: String) -> String, ErrCode {
    return request("POST", raw_url, data);
}
@briefProvides the system library operation `post`.
@detailsExecutes the `post` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • raw_urlURL string exactly as supplied by the caller before parsing or escaping.
  • dataInput or output data buffer.
@returnReturns `String, ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.

Variables

Class fields (var).