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
Structure associated with response paths used play response mode.
The http_proxy
returns response when the http_proxy receives http request and its path matchs path
or path_pattern
Return path_patterns
attribute in HttpProxy.Play.Paths.__struct__
Return paths
attribute in HttpProxy.Play.Paths.__struct__
Functions
Structure associated with response paths used play response mode.
The http_proxy
returns response when the http_proxy receives http request and its path matchs path
or path_pattern
.
Example
iex> HttpProxy.Play.Paths.__struct__
%HttpProxy.Play.Paths{path_patterns: ["\\A/request.*neko\\z"],
paths: ["/request/path", "/request/path"]}
Specs
path_patterns :: list
Return path_patterns
attribute in HttpProxy.Play.Paths.__struct__
Example
iex> HttpProxy.Play.Paths.path_patterns
["\\A/request.*neko\\z"]