Sha256: 1907f9b8811afab10a2bb4b745fc7365543210e88399832a6110efbb16bdad69

Contents?: true

Size: 1.36 KB

Versions: 12

Compression:

Stored size: 1.36 KB

Contents

module HTTPX
  class Request
    extend Forwardable
    include Callbacks

    METHODS: Array[Symbol]
    USER_AGENT: String

    attr_reader verb: verb
    attr_reader uri: http_uri
    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?

    attr_accessor peer_address: ipaddr?

    attr_writer persistent: bool

    @trailers: Headers?
    @informational_status: Integer?
    @query: String?
    @drainer: Enumerator[String, void]?

    def initialize: (Symbol | String, generic_uri, ?options) -> untyped

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

    def merge_headers: (_Each[[String, headers_value]]) -> void

    def scheme: () -> String

    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

    def persistent?: () -> bool

    def read_timeout: () -> Numeric?

    def write_timeout: () -> Numeric?

    def request_timeout: () -> Numeric?

    private

    def initialize_body: (Options options) -> Transcoder::_Encoder?

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
httpx-1.2.6 sig/request.rbs
httpx-1.2.4 sig/request.rbs
httpx-1.2.3 sig/request.rbs
httpx-1.2.2 sig/request.rbs
httpx-1.2.1 sig/request.rbs
httpx-1.2.0 sig/request.rbs
httpx-1.1.5 sig/request.rbs
httpx-1.1.4 sig/request.rbs
httpx-1.1.3 sig/request.rbs
httpx-1.1.2 sig/request.rbs
httpx-1.1.1 sig/request.rbs
httpx-1.1.0 sig/request.rbs