File: httpx.rbs

package info (click to toggle)
ruby-httpx 1.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,816 kB
  • sloc: ruby: 12,209; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 577 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module HTTPX
  extend Chainable

  EMPTY: Array[untyped]
  EMPTY_HASH: Hash[untyped, untyped]

  VERSION: String

  type http_uri = URI::HTTP | URI::HTTPS
  type uri = http_uri | string
  type generic_uri = String | URI::Generic

  type verb = String

  type request_params = Hash[Symbol, untyped]

  type ip_family = Integer #Socket::AF_INET6 | Socket::AF_INET

  module Plugins
    self.@plugins: Hash[Symbol, Module]
    self.@plugins_mutex: Thread::Mutex

    def self?.load_plugin: (Symbol name) -> Module

    def self?.register_plugin: (Symbol, Module) -> void
  end
end