ExHttpProxy v1.1.0 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

Types

path :: binary
paths :: [path]

Functions

clear_path_patterns()

Specs

clear_path_patterns :: :ok
clear_paths()

Specs

clear_paths :: :ok
path?(path)

Specs

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

Specs

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

Specs

path_patterns :: paths

Return path_patterns stored in Agent.

Example

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

Specs

Return paths stored in Agent.

Example

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