Current section
Files
Jump to
Current section
Files
lib/smartsheet/request.ex
defmodule Smartsheet.Request do
defstruct [
:body,
:headers,
:method,
:options,
:params,
:url
]
@type t :: %__MODULE__{
method: any,
url: any,
headers: any,
body: any,
params: any,
options: any
}
def format(%HTTPoison.Request{} = request) do
%Smartsheet.Request{
body: request.body,
headers: request.headers,
method: request.method,
options: request.options,
params: request.params,
url: request.url
}
end
end