main
1module Net
2 module Hippie
3 VERSION: String
4
5 CONNECTION_ERRORS: Array[Class]
6
7 def self.logger: () -> untyped
8 def self.logger=: (untyped) -> untyped
9
10 def self.verify_mode: () -> Integer
11 def self.verify_mode=: (Integer) -> Integer
12
13 def self.basic_auth: (String username, String password) -> String
14 def self.bearer_auth: (String token) -> String
15
16 def self.default_client: () -> Client
17 def self.reset_default_client!: () -> nil
18
19 def self.resolve: (String hostname, ?timeout: Integer) -> String?
20
21 def self.get: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
22 def self.post: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
23 def self.put: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
24 def self.patch: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
25 def self.delete: (untyped uri, ?headers: Hash[String, String], ?body: untyped, ?stream: bool) ?{ (untyped) -> void } -> untyped
26 def self.head: (untyped uri, ?headers: Hash[String, String]) ?{ (untyped) -> void } -> untyped
27 def self.options: (untyped uri, ?headers: Hash[String, String]) ?{ (untyped) -> void } -> untyped
28 end
29end