Logo Orsak

IWireFormat Type

How values cross the wire: what a remote call's arguments and result are written as, and read from. JSON is one; a binary format, such as MessagePack, would be another.

A format makes a codec for each member's types once, when a client or server is set up, and the codec converts every value after: so a type a format doesn't support fails when it starts, not on its first call. The types are given, as Fable erases generic arguments at run time, so a format can't find them from the values.

Instance members

Instance member Description

this.ArgumentsCodecFor

Full Usage: this.ArgumentsCodecFor

Parameters:
    types : Type array

Returns: IWireArgumentsCodec
Modifiers: abstract

Makes the codec of a member's arguments, of the given types, or fails if the format can't write one of them.

types : Type array
Returns: IWireArgumentsCodec

this.CodecFor

Full Usage: this.CodecFor

Parameters:
Returns: IWireCodec
Modifiers: abstract

Makes the codec of values of a type, such as a member's result, or fails if the format can't write it.

t : Type
Returns: IWireCodec

this.ContentType

Full Usage: this.ContentType

Returns: string
Modifiers: abstract

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

Returns: string

Type something to start searching.