Split.RPC.ResponseParser (split v0.2.0-rc.0)

Contains the functions to parse the response from the Splitd RPC calls.

Summary

Functions

Parses the response from the Splitd RPC calls.

Types

Link to this type

splitd_response()

@type splitd_response() :: {:ok, map()} | {:error, term()}

Functions

Link to this function

parse_response(response, original_request, opts \\ [])

@spec parse_response(response :: splitd_response(), request :: Split.RPC.Message.t(),
  span_context: reference(),
  span_context: nil
) ::
  map() | list() | Split.Impression.t() | Split.SplitView.t() | boolean() | nil

Parses the response from the Splitd RPC calls.