bendonnect-rpc
Releases (1)
-
0.1.0.0 indexed
Definitions (710)
main.bend
- def versionThe library version, matching its BendHub name.
src/b64.bend
- def strip_pad.pickDrops the leading '=' run of a reversed string (i.e.
- def strip_pad.rev
- def swap2Maps char a1 to b1 and a2 to b2, leaving other chars alone.
- def encode_stdStandard alphabet ('+', '/') with '=' padding.
- def encode_std_rawStandard alphabet, no padding.
- def encode_url_rawURL-safe alphabet ('-', '_'), no padding.
- def has_pad
- def decode.padded
- def decode.norm
- def decodeEither alphabet, padded or unpadded.
src/code.bend
- type Code
- def to_stringThe wire name, as it appears in an Error's "code" property.
- def to_httpThe HTTP status a unary error response carries.
- def allAll codes, in the order of the spec's table.
- def from_string.pick
- def from_string.go
- def from_stringParses a wire name; None for anything that is not one of the sixteen codes.
- type RowOne row of the spec's HTTP-to-code table.
- def from_http.pick
- def from_http.go
- def from_httpThe code a client infers from a non-200 status with no Connect error body.
src/envelope.bend
- type Envelope
- def flag_compressed
- def flag_end
- def encode.of5-byte header followed by the message.
- def encode
- def encode_listEncodes every envelope in parallel, then concatenates.
- def encode_all
- type Step
- def decode.too_big
- def decode.rest
- def decode.body
- def decode.cut
- def decode.fit
- def decode.size
- def decode.len
- def decode.flags
- def decode.hdr
- def decode.startReads one envelope off the front of buf: Need when more bytes are required, Got with the remaining bytes, Bad when the announced size exceeds max.
- def decode
- def decode_all.cons
- def decode_all.end
- def decode_all.fin
- def decode_all.gofuel: every envelope takes at least 5 bytes, so (bytes + 1) steps always suffice.
- def decode_all.start
- def decode_allEvery envelope of a complete body; a trailing partial envelope is a Fail.
src/error.bend
- type Detail
- type Error
- type EndStream
- def new
- def str_val
- def kv
- def debug_part
- def detail_to_json
- def details_json
- def details_part
- def message_part.go
- def message_part
- def to_json
- def encode
- type FsUp to three fields picked out of an object by name.
- def fs.empty
- def put1
- def put2
- def put3
- def pick.put3
- def pick.put2
- def pick.put
- def pick.slot
- def pick.go
- def unknown_of
- def code_str
- def code_of.val
- def code_ofA present string code (unrecognized names become Unknown); anything else is None.
- def str_of.val
- def str_of
- def opt_str.val
- def opt_str
- def opt_b64
- def detail_build
- def detail_fields
- def detail_of
- def details_push
- def details_go
- def details_val
- def details_of
- def error_build
- def error_fields
- def from_json{}, {"code":null}, a non-string code, or a non-object are invalid (None).
- def decode.val
- def decode
- def status_text
- def from_http.pick
- def from_httpClient side of a non-200 unary response: the Connect error in the body if it parses, else a code inferred from the status with the status text as message.
- def strs_val
- def meta_entries
- def meta_part
- def err_part
- def end_encode