main
1module Net
2 module Hippie
3 class Client
4 DEFAULT_HEADERS: Hash[String, String]
5
6 attr_reader mapper: ContentTypeMapper
7 attr_reader logger: untyped
8 attr_reader follow_redirects: Integer
9
10 def initialize: (?Hash[Symbol, untyped] options) -> void
11
12 def get: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
13 def post: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
14 def put: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
15 def patch: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
16 def delete: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
17 def head: (untyped uri, ?headers: Hash[String, String]) ?{ (untyped) -> void } -> untyped
18 def options: (untyped uri, ?headers: Hash[String, String]) ?{ (untyped) -> void } -> untyped
19
20 def execute: (untyped uri, untyped request, ?limit: Integer, ?stream: bool) ?{ (untyped) -> void } -> untyped
21 def with_retry: (?retries: Integer) { (Client) -> untyped } -> untyped
22 def close_all: () -> void
23 end
24 end
25end