efetch
Types
pub type ConnectError {
EACCES
EPERM
EADDRINUSE
EADDRNOTAVAIL
EAFNOSUPPORT
EAGAIN
EALREADY
EBADF
ECONNREFUSED
EFAULT
EINPROGRESS
EINTR
EISCONN
ENETUNREACH
ENOTSOCK
EPROTOTYPE
ETIMEDOUT
UnknownConnectError(String)
}
Constructors
-
EACCES
-
EPERM
-
EADDRINUSE
-
EADDRNOTAVAIL
-
EAFNOSUPPORT
-
EAGAIN
-
EALREADY
-
EBADF
-
ECONNREFUSED
-
EFAULT
-
EINPROGRESS
-
EINTR
-
EISCONN
-
ENETUNREACH
-
ENOTSOCK
-
EPROTOTYPE
-
ETIMEDOUT
-
UnknownConnectError(String)
pub type DNSError {
NoData
Formerr
ServerFail
NotFound
NotImplemented
Refused
BadQuery
BadName
BadFamily
BadResponse
ConnectionRefused
Timeout
EOF
File
NoMem
Destruction
BadString
BadFlags
NoName
BadHints
NotInitialized
LoadIPHLPAPI
AddrGetNetworkParams
Cancelled
TryAgainLater
UnknownDNSError(String)
}
Constructors
-
NoData
dns.NODATA
: DNS server returned an answer with no data. -
Formerr
dns.FORMERR
: DNS server claims query was misformatted. -
ServerFail
dns.SERVFAIL
: DNS server returned general failure. -
NotFound
dns.NOTFOUND
: Domain name not found. -
NotImplemented
dns.NOTIMP
: DNS server does not implement the requested operation. -
Refused
dns.REFUSED
: DNS server refused query. -
BadQuery
dns.BADQUERY
: Misformatted DNS query. -
BadName
dns.BADNAME
: Misformatted host name. -
BadFamily
dns.BADFAMILY
: Unsupported address family. -
BadResponse
dns.BADRESP
: Misformatted DNS reply. -
ConnectionRefused
dns.CONNREFUSED
: Could not contact DNS servers. -
Timeout
dns.TIMEOUT
: Timeout while contacting DNS servers. -
EOF
dns.EOF
: End of file. -
File
dns.FILE
: Error reading file. -
NoMem
dns.NOMEM
: Out of memory. -
Destruction
dns.DESTRUCTION
: Channel is being destroyed. -
BadString
dns.BADSTR
: Misformatted string. -
BadFlags
dns.BADFLAGS
: Illegal flags specified. -
NoName
dns.NONAME
: Given host name is not numeric. -
BadHints
dns.BADHINTS
: Illegal hints flags specified. -
NotInitialized
dns.NOTINITIALIZED
: c-ares library initialization not yet performed. -
LoadIPHLPAPI
dns.LOADIPHLPAPI
: Error loading iphlpapi.dll. -
AddrGetNetworkParams
dns.ADDRGETNETWORKPARAMS
: Could not find GetNetworkParams function. -
Cancelled
dns.CANCELLED
: DNS query cancelled. -
TryAgainLater
EAI_AGAIN
: The name server returned a temporary failure indication. Try again later. -
UnknownDNSError(String)
pub type HttpError {
DNSError(DNSError)
ConnectError(ConnectError)
TLSError(TLSError)
UnknownNetworkError(String)
InvalidUtf8Response
UnableToReadBody
InvalidJsonBody
Other(Dynamic)
}
Constructors
-
DNSError(DNSError)
-
ConnectError(ConnectError)
-
TLSError(TLSError)
-
UnknownNetworkError(String)
-
InvalidUtf8Response
-
UnableToReadBody
-
InvalidJsonBody
-
Other(Dynamic)
Functions
pub fn send(
req: Request(String),
callback: fn(Result(Response(String), HttpError)) -> a,
) -> Request(String)