View Source HttpProxy.Play.Paths (ExHttpProxy v1.6.0)

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

@type path() :: binary()
@type paths() :: [path()]

Link to this section Functions

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

Return path_patterns stored in Agent.

example

Example

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

Return paths stored in Agent.

example

Example

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