Sha256: eead444d9b2ebd49d2d90233ba19ce09c42b4ca3452e799bdda74572f0055c4b

Contents?: true

Size: 1.41 KB

Versions: 11

Compression:

Stored size: 1.41 KB

Contents

module HTTPX
  class Request
    include Callbacks

    METHODS: Array[verb]
    USER_AGENT: String

    attr_reader verb: verb
    attr_reader uri: URI::HTTP | URI::HTTPS
    attr_reader headers: Headers
    attr_reader body: Body
    attr_reader state: Symbol
    attr_reader options: Options
    attr_reader response: response?
    attr_reader drain_error: StandardError?

    def initialize: (verb | String, uri, ?options?) -> untyped

    def interests: () -> (:r | :w)

    def merge_headers: (Headers | Hash) -> void

    def scheme: () -> ("http" | "https")

    def response=: (response) -> void

    def path: () -> String

    def authority: () -> String

    def origin: () -> String

    def query: () -> String

    def drain_body: () -> String?

    def inspect: () -> String

    def transition: (Symbol) -> void

    def expects?: () -> boolish

    def trailers: () -> Headers

    def trailers?: () -> boolish

    class Body
      def initialize: (Headers, Options) -> untyped
      def each: () { (String) -> void } -> void
              | () -> Enumerable[String]

      def empty?: () -> bool
      def bytesize: () -> Numeric
      def stream: (Transcoder::_Encoder) -> bodyIO
      def unbounded_body?: () -> bool
      def chunked?: () -> bool
      def chunk!: () -> void
      def inspect: () -> String
    end

    class ProcIO
      include _Writer
      def initialize: (^(_ToS) -> void) -> untyped
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
httpx-0.15.4 sig/request.rbs
httpx-0.15.3 sig/request.rbs
httpx-0.15.2 sig/request.rbs
httpx-0.15.1 sig/request.rbs
httpx-0.15.0 sig/request.rbs
httpx-0.14.5 sig/request.rbs
httpx-0.14.4 sig/request.rbs
httpx-0.14.3 sig/request.rbs
httpx-0.14.2 sig/request.rbs
httpx-0.14.1 sig/request.rbs
httpx-0.14.0 sig/request.rbs