ExHttpProxy v1.0.2 HttpProxy.Play.Paths

HttpProxy.Play.Paths is structure for play response mode. The structure gets paths as list via HttpProxy.Play.Response.play_paths.

Summary

Functions

Return path_patterns stored in Agent

Return paths stored in Agent

Functions

clear_path_patterns()

Specs

clear_path_patterns :: :ok
clear_paths()

Specs

clear_paths :: :ok
path?(path)

Specs

path?(binary) :: binary | nil
path_pattern?(path)

Specs

path_pattern?(binary) :: binary | nil
path_patterns()

Specs

path_patterns :: binary

Return path_patterns stored in Agent.

Example

iex> HttpProxy.Play.Paths.path_patterns
["\\A/request.*neko\\z"]
paths()

Specs

paths :: binary

Return paths stored in Agent.

Example

iex> HttpProxy.Play.Paths.paths
["/request/path", "/request/path"]