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

__struct__()

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"]}
has_path?(path)

Specs

has_path?(binary) :: binary | nil
has_path_pattern?(path)

Specs

has_path_pattern?(binary) :: binary | nil
path_patterns()

Specs

path_patterns :: list

Return path_patterns attribute in HttpProxy.Play.Paths.__struct__

Example

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

Specs

paths :: list

Return paths attribute in HttpProxy.Play.Paths.__struct__

Example

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