Sha256: e3dab503cacf74a6beedcb6ab749389edbb76490061868abae6c338e0af1ebbc

Contents?: true

Size: 992 Bytes

Versions: 24

Compression:

Stored size: 992 Bytes

Contents

module HTTPX
  module Parser
    type parsed_headers = Hash[String, Array[String]]

    interface _HTTP1Events

      def on_start: () -> void
      def on_headers: (parsed_headers) -> void
      def on_trailers: (parsed_headers) -> void
      def on_data: (String) -> void
      def on_complete: () -> void
    end

    class HTTP1
      VERSIONS: Array[String]

      def <<: (String chunk) -> void

      def headers: () -> parsed_headers

      def http_version: () -> Array[1 | 0]

      def reset!: () -> void

      def status_code: () -> Integer

      def upgrade?: () -> bool

      def upgrade_data: () -> String

      private

      def initialize: (_HTTP1Events observer) -> untyped

      def nextstate: (Symbol state) -> void

      def no_more_data?: () -> bool

      def parse: () -> void

      def parse_data: () -> void

      def parse_headers: () -> void

      def parse_headline: () -> void

      def prepare_data: (parsed_headers headers) -> void
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
httpx-0.16.1 sig/parser/http1.rbs
httpx-0.16.0 sig/parser/http1.rbs
httpx-0.15.4 sig/parser/http1.rbs
httpx-0.15.3 sig/parser/http1.rbs
httpx-0.15.2 sig/parser/http1.rbs
httpx-0.15.1 sig/parser/http1.rbs
httpx-0.15.0 sig/parser/http1.rbs
httpx-0.14.5 sig/parser/http1.rbs
httpx-0.14.4 sig/parser/http1.rbs
httpx-0.14.3 sig/parser/http1.rbs
httpx-0.14.2 sig/parser/http1.rbs
httpx-0.14.1 sig/parser/http1.rbs
httpx-0.14.0 sig/parser/http1.rbs
httpx-0.13.2 sig/parser/http1.rbs
httpx-0.13.1 sig/parser/http1.rbs
httpx-0.13.0 sig/parser/http1.rbs
httpx-0.12.0 sig/parser/http1.rbs
httpx-0.11.3 sig/parser/http1.rbs
httpx-0.11.2 sig/parser/http1.rbs
httpx-0.11.1 sig/parser/http1.rbs