pub(all) enum ErrorCode {
DnsTimeout
DnsError(DnsErrorPayload)
DestinationNotFound
DestinationUnavailable
DestinationIpProhibited
DestinationIpUnroutable
ConnectionRefused
ConnectionTerminated
ConnectionTimeout
ConnectionReadTimeout
ConnectionWriteTimeout
ConnectionLimitReached
TlsProtocolError
TlsCertificateError
TlsAlertReceived(TlsAlertReceivedPayload)
HttpRequestDenied
HttpRequestLengthRequired
HttpRequestBodySize(UInt64?)
HttpRequestMethodInvalid
HttpRequestUriInvalid
HttpRequestUriTooLong
HttpRequestHeaderSectionSize(UInt?)
HttpRequestHeaderSize(FieldSizePayload?)
HttpRequestTrailerSectionSize(UInt?)
HttpRequestTrailerSize(FieldSizePayload)
HttpResponseIncomplete
HttpResponseHeaderSectionSize(UInt?)
HttpResponseHeaderSize(FieldSizePayload)
HttpResponseBodySize(UInt64?)
HttpResponseTrailerSectionSize(UInt?)
HttpResponseTrailerSize(FieldSizePayload)
HttpResponseTransferCoding(String?)
HttpResponseContentCoding(String?)
HttpResponseTimeout
HttpUpgradeFailed
HttpProtocolError
LoopDetected
ConfigurationError
InternalError(String?)
} derive(Eq, Show)fn Fields::append(self : Fields, name : String, value : FixedArray[Byte]) -> Result[Unit, HeaderError]fn Fields::set(self : Fields, name : String, value : Array[FixedArray[Byte]]) -> Result[Unit, HeaderError]fn FutureIncomingResponse::get(self : FutureIncomingResponse) -> Result[Result[IncomingResponse, ErrorCode], Unit]?#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn FutureIncomingResponse::inner(self : FutureIncomingResponse) -> Int#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn FutureTrailers::inner(self : FutureTrailers) -> Int#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn IncomingBody::inner(self : IncomingBody) -> Int#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn IncomingRequest::inner(self : IncomingRequest) -> Int#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn IncomingResponse::inner(self : IncomingResponse) -> Int#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn OutgoingBody::inner(self : OutgoingBody) -> Int#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn OutgoingRequest::inner(self : OutgoingRequest) -> Intfn OutgoingRequest::set_authority(self : OutgoingRequest, authority : String?) -> Result[Unit, Unit]fn OutgoingRequest::set_path_with_query(self : OutgoingRequest, path_with_query : String?) -> Result[Unit, Unit]#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn OutgoingResponse::inner(self : OutgoingResponse) -> Intfn OutgoingResponse::set_status_code(self : OutgoingResponse, status_code : UInt) -> Result[Unit, Unit]#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn RequestOptions::inner(self : RequestOptions) -> Intfn RequestOptions::set_between_bytes_timeout(self : RequestOptions, duration : UInt64?) -> Result[Unit, Unit]fn RequestOptions::set_connect_timeout(self : RequestOptions, duration : UInt64?) -> Result[Unit, Unit]fn RequestOptions::set_first_byte_timeout(self : RequestOptions, duration : UInt64?) -> Result[Unit, Unit]#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn ResponseOutparam::inner(self : ResponseOutparam) -> Intfn ResponseOutparam::set(param : ResponseOutparam, response : Result[OutgoingResponse, ErrorCode]) -> UnitExperimental Spin SDK for the MoonBit programming language.
Dependencies