efetch

Types

pub type ConnectError {
  EAcces
  EPerm
  EAddrinuse
  Eddrnotavail
  EAfnosupport
  EAgain
  EAlready
  EBadF
  EConnrefused
  EFault
  EInProgress
  EIntr
  EIsConn
  ENetUnreach
  ENotSock
  EPrototype
  ETimeout
  ENoDev
  ENoData
  UnknownConnectError(String)
}

Constructors

  • EAcces
  • EPerm
  • EAddrinuse
  • Eddrnotavail
  • EAfnosupport
  • EAgain
  • EAlready
  • EBadF
  • EConnrefused
  • EFault
  • EInProgress
  • EIntr
  • EIsConn
  • ENetUnreach
  • ENotSock
  • EPrototype
  • ETimeout
  • ENoDev
  • ENoData
  • 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)
pub type TLSError {
  InvalidTLSCertAltName
  UnknownTLSError(String)
}

Constructors

  • InvalidTLSCertAltName
  • UnknownTLSError(String)

Functions

pub fn send(
  req: Request(String),
) -> Result(Response(String), HttpError)
pub fn send_bits(
  req: Request(BitArray),
) -> Result(Response(BitArray), HttpError)
Search Document