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
Link to this section Types
Link to this section Functions
@spec clear_path_patterns() :: :ok
@spec clear_paths() :: :ok
@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"]