Sha256: 8e3c2dee65a0a5aa0c68446f439b0737b28481f0931f3cd66c269735c771801a

Contents?: true

Size: 1014 Bytes

Versions: 9

Compression:

Stored size: 1014 Bytes

Contents

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

    interface _HTTP1Events

      def on_start: () -> void
      def on_headers: (parsed_headers headers) -> void
      def on_trailers: (parsed_headers trailers) -> void
      def on_data: (String data) -> 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

9 entries across 9 versions & 1 rubygems

Version Path
httpx-0.18.7 sig/parser/http1.rbs
httpx-0.18.6 sig/parser/http1.rbs
httpx-0.18.5 sig/parser/http1.rbs
httpx-0.18.4 sig/parser/http1.rbs
httpx-0.18.3 sig/parser/http1.rbs
httpx-0.18.2 sig/parser/http1.rbs
httpx-0.18.1 sig/parser/http1.rbs
httpx-0.18.0 sig/parser/http1.rbs
httpx-0.17.0 sig/parser/http1.rbs