Module: RequestVia
- Defined in:
- lib/request_via.rb,
lib/request_via/func.rb,
lib/request_via/client.rb,
lib/request_via/version.rb,
lib/request_via/net_http.rb
Defined Under Namespace
Modules: Func, NetHTTP, SemVer Classes: Client
Constant Summary collapse
- Get =
Func::FetchStrategyTo.(Net::HTTP::Get)
- Head =
Func::FetchStrategyTo.(Net::HTTP::Head)
- Post =
Func::FetchStrategyTo.(Net::HTTP::Post)
- Put =
Func::FetchStrategyTo.(Net::HTTP::Put)
- Delete =
Func::FetchStrategyTo.(Net::HTTP::Delete)
- Options =
Func::FetchStrategyTo.(Net::HTTP::Options)
- Trace =
Func::FetchStrategyTo.(Net::HTTP::Trace)
- Patch =
Func::FetchStrategyTo.(Net::HTTP::Patch)
- GetR =
Func::ReverseRequestArgsTo.(Get)
- HeadR =
Func::ReverseRequestArgsTo.(Head)
- PostR =
Func::ReverseRequestArgsTo.(Post)
- PutR =
Func::ReverseRequestArgsTo.(Put)
- DeleteR =
Func::ReverseRequestArgsTo.(Delete)
- OptionsR =
Func::ReverseRequestArgsTo.(Options)
- TraceR =
Func::ReverseRequestArgsTo.(Trace)
- PatchR =
Func::ReverseRequestArgsTo.(Patch)
- DEFAULT_HEADERS =
{ 'User-Agent' => "RequestVia v#{RequestVia::VERSION}" }.freeze
- Freeze =
-> object { object.freeze }.freeze
- VERSION =
[ SemVer::MAJOR, SemVer::MINOR, SemVer::PATCH, ].join('.').freeze