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.3.4 sig/transcoder/chunker.rbs
httpx-1.3.3 sig/transcoder/chunker.rbs
httpx-1.3.2 sig/transcoder/chunker.rbs
httpx-1.3.1 sig/transcoder/chunker.rbs
httpx-1.3.0 sig/transcoder/chunker.rbs
httpx-1.2.6 sig/transcoder/chunker.rbs
httpx-1.2.4 sig/transcoder/chunker.rbs
httpx-1.2.3 sig/transcoder/chunker.rbs
httpx-1.2.2 sig/transcoder/chunker.rbs
httpx-1.2.1 sig/transcoder/chunker.rbs
httpx-1.2.0 sig/transcoder/chunker.rbs
httpx-1.1.5 sig/transcoder/chunker.rbs
httpx-1.1.4 sig/transcoder/chunker.rbs
httpx-1.1.3 sig/transcoder/chunker.rbs
httpx-1.1.2 sig/transcoder/chunker.rbs
httpx-1.1.1 sig/transcoder/chunker.rbs
httpx-1.1.0 sig/transcoder/chunker.rbs
httpx-1.0.2 sig/transcoder/chunker.rbs
httpx-0.24.7 sig/transcoder/chunker.rbs
httpx-1.0.1 sig/transcoder/chunker.rbs