Current section

Files

Jump to
http_proxy lib http_proxy data.ex
Raw

lib/http_proxy/data.ex

defmodule HttpProxy.Data do
@moduledoc false
@doc ~S"""
HTTP request/response structure used record/play them.
## Example
iex> HttpProxy.Data.__struct__
%HttpProxy.Data{request: [:url, :remote, :method, :headers, :request_body, :options],
response: [:body, :cookies, :status_code, :headers]}
"""
defstruct request: [:url, :remote, :method, :headers, :request_body, :options],
response: [:body, :cookies, :status_code, :headers]
end