ExHttpProxy v1.1.1 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()
path :: binary
paths()
paths :: [path]

Functions

clear_path_patterns()
clear_path_patterns :: :ok
clear_paths()
clear_paths :: :ok
path?(path)
path?(path) :: path | nil
path_pattern?(path)
path_pattern?(path) :: path | nil
path_patterns()
path_patterns :: paths

Return path_patterns stored in Agent.

Example

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

Return paths stored in Agent.

Example

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