Logo Orsak

IWireEncoding Type

The bytes of a self-describing format: WireValues to bytes and back. Given to a WireFormat, it is a format a client and a server can use, with the values of F# types mapped as for every other encoding.

A client and a server may use different encodings of the same content type, such as Orsak.Remoting's own JSON in a Fable client and System.Text.Json on the server, as long as each reads what the other writes: Conformance.check and Conformance.agree test that.

Instance members

Instance member Description

this.ContentType

Full Usage: this.ContentType

Returns: string
Modifiers: abstract

The content type of the requests and responses in this encoding, by which the server picks a format.

Returns: string

this.Read

Full Usage: this.Read

Parameters:
    body : byte array

Returns: WireValue
Modifiers: abstract

Reads a value.

body : byte array
Returns: WireValue

this.Write

Full Usage: this.Write

Parameters:
Returns: byte array
Modifiers: abstract

Writes a value.

value : WireValue
Returns: byte array

Type something to start searching.