Polyjuice Client v0.4.4 Polyjuice.Client.Endpoint.Proto protocol View Source

Matrix client endpoint.

Link to this section Summary

Functions

Generate the spec for calling the endpoint via HTTP.

Transform the HTTP result into a return value.

Link to this section Types

Link to this section Functions

Link to this function

http_spec(endpoint_args)

View Source
http_spec(endpoint_args :: t()) :: Polyjuice.Client.Endpoint.HttpSpec.t()

Generate the spec for calling the endpoint via HTTP.

Link to this function

transform_http_result(endpoint_args, status_code, headers, body)

View Source
transform_http_result(
  endpoint_args :: t(),
  status_code :: integer(),
  headers :: [{String.t(), String.t()}, ...],
  body :: String.t()
) :: any()

Transform the HTTP result into a return value.