ExHttpProxy v1.5.0 HttpProxy.Play.Paths View Source

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

Link to this section Summary

Functions

Return path_patterns stored in Agent.

Return paths stored in Agent.

Link to this section Types

Link to this section Functions

Link to this function

clear_path_patterns()

View Source
clear_path_patterns() :: :ok
Link to this function

clear_paths()

View Source
clear_paths() :: :ok
Link to this function

path?(path)

View Source
path?(path()) :: path() | nil
Link to this function

path_pattern?(path)

View Source
path_pattern?(path()) :: path() | nil
Link to this function

path_patterns()

View Source
path_patterns() :: paths()

Return path_patterns stored in Agent.

Example

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

Return paths stored in Agent.

Example

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