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-0.21.0 sig/transcoder/chunker.rbs
httpx-0.20.5 sig/transcoder/chunker.rbs
httpx-0.20.4 sig/transcoder/chunker.rbs
httpx-0.20.3 sig/transcoder/chunker.rbs
httpx-0.20.2 sig/transcoder/chunker.rbs
httpx-0.20.1 sig/transcoder/chunker.rbs
httpx-0.20.0 sig/transcoder/chunker.rbs
httpx-0.19.8 sig/transcoder/chunker.rbs
httpx-0.19.7 sig/transcoder/chunker.rbs
httpx-0.19.6 sig/transcoder/chunker.rbs
httpx-0.19.5 sig/transcoder/chunker.rbs
httpx-0.19.4 sig/transcoder/chunker.rbs
httpx-0.19.3 sig/transcoder/chunker.rbs
httpx-0.19.2 sig/transcoder/chunker.rbs
httpx-0.19.1 sig/transcoder/chunker.rbs
httpx-0.19.0 sig/transcoder/chunker.rbs