Sha256: e54daf59a3bf1b839fbd2764f99adf620d8b66cf685f6bab9ce89a3429c946b0

Contents?: true

Size: 1.73 KB

Versions: 21

Compression:

Stored size: 1.73 KB

Contents

module HTTPX
  class Connection
    interface _Parser

      def on: (Symbol) { (*untyped) -> void } -> void
      def empty?: () -> bool
      def close: () -> void
      def consume: () -> void
      def <<: (string) -> void
    end

    include Loggable
    include Callbacks
    extend HTTPX::Registry[String, Class]

    attr_reader origin: generic_uri 
    attr_reader state: Symbol
    attr_reader pending: Array[Request]
    attr_reader options: options

    def addresses: () -> Array[ipaddr]?

    def addresses=: (Array[ipaddr]) -> void

    def match?: (generic_uri, options) -> bool

    def mergeable?: (Connection) -> bool

    def coalescable?: (Connection) -> bool

    def create_idle: (options) -> Connection
                   | () -> Connection

    def merge: (Connection) -> void

    def purge_pending: () { (Request) -> void } -> void

    def match_altsvcs?: (generic_uri) -> bool

    def connecting?: () -> bool
    def inflight?: () -> boolish

    def interests: () -> io_interests?

    def to_io: () -> _ToIO

    def call: () -> void

    def close: () -> void
    def reset: () -> void

    def send: (Request) -> void

    def timeout: () -> Numeric?

    private

    def initialize: (String, generic_uri, options) -> untyped

    def connect: () -> void

    def exhausted?: () -> boolish

    def consume: () -> void

    def send_pending: () -> void

    def parser: () -> _Parser

    def build_parser: () -> _Parser
                    | (String) -> _Parser

    def set_parser_callbacks: (_Parser) -> void

    def transition: (Symbol) -> void

    def handle_response: () -> void

    def on_error: (StandardError) -> void

    def handle_error: (StandardError) -> void

    def total_timeout: () -> Timers::Timer?
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
httpx-0.15.4 sig/connection.rbs
httpx-0.15.3 sig/connection.rbs
httpx-0.15.2 sig/connection.rbs
httpx-0.15.1 sig/connection.rbs
httpx-0.15.0 sig/connection.rbs
httpx-0.14.5 sig/connection.rbs
httpx-0.14.4 sig/connection.rbs
httpx-0.14.3 sig/connection.rbs
httpx-0.14.2 sig/connection.rbs
httpx-0.14.1 sig/connection.rbs
httpx-0.14.0 sig/connection.rbs
httpx-0.13.2 sig/connection.rbs
httpx-0.13.1 sig/connection.rbs
httpx-0.13.0 sig/connection.rbs
httpx-0.12.0 sig/connection.rbs
httpx-0.11.3 sig/connection.rbs
httpx-0.11.2 sig/connection.rbs
httpx-0.11.1 sig/connection.rbs
httpx-0.11.0 sig/connection.rbs
httpx-0.10.2 sig/connection.rbs