Sha256: 4dbca2a527bbaacfa05296dbd4c830d581a6c500a26dbff00831c4ea3858511b

Contents?: true

Size: 874 Bytes

Versions: 56

Compression:

Stored size: 874 Bytes

Contents

module HTTPX::Transcoder
  module Chunker
    CRLF: String

    class Error < HTTPX::Error
    end

    def self?.encode: (_Each[String] chunks) -> Encoder

    class Encoder
      @raw: _Each[String]

      def each: () { (String) -> void } -> void
              | () -> Enumerator[String, void]

      private

      def initialize: (_Each[String] chunks) -> void
    end

    class Decoder
      extend Forwardable
      include _ToS

      @buffer: String
      @chunk_length: Integer
      @chunk_buffer: String
      @finished: bool
      @state: Symbol
      @trailers: bool

      def each: () { (String) -> void } -> void

      def finished?: () -> bool

      def empty?: () -> bool

      def <<: (string) -> void

      def clear: () -> void

      private

      def initialize: (String, ?bool) -> void

      def nextstate: (Symbol) -> void
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
httpx-1.0.0 sig/transcoder/chunker.rbs
httpx-0.24.6 sig/transcoder/chunker.rbs
httpx-0.24.5 sig/transcoder/chunker.rbs
httpx-0.24.4 sig/transcoder/chunker.rbs
httpx-0.24.3 sig/transcoder/chunker.rbs
httpx-0.24.2 sig/transcoder/chunker.rbs
httpx-0.24.1 sig/transcoder/chunker.rbs
httpx-0.24.0 sig/transcoder/chunker.rbs
httpx-0.23.4 sig/transcoder/chunker.rbs
httpx-0.23.3 sig/transcoder/chunker.rbs
httpx-0.23.2 sig/transcoder/chunker.rbs
httpx-0.23.1 sig/transcoder/chunker.rbs
httpx-0.23.0 sig/transcoder/chunker.rbs
httpx-0.22.5 sig/transcoder/chunker.rbs
httpx-0.22.4 sig/transcoder/chunker.rbs
httpx-0.22.3 sig/transcoder/chunker.rbs
httpx-0.22.2 sig/transcoder/chunker.rbs
httpx-0.22.1 sig/transcoder/chunker.rbs
httpx-0.22.0 sig/transcoder/chunker.rbs
httpx-0.21.1 sig/transcoder/chunker.rbs