Class: Telnyx::Models::HTTP::Request

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/http.rb,
sig/telnyx/models/http.rbs

Overview

See Also:

  • Telnyx::Models::HTTP#request

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



36
# File 'sig/telnyx/models/http.rbs', line 36

def initialize: (

Instance Attribute Details

#headersArray<Array<String>>?

List of headers, limited to 10kB.

Parameters:

  • (::Array[::Array[String]])

Returns:

  • (Array<Array<String>>, nil)


31
# File 'lib/telnyx/models/http.rb', line 31

optional :headers, Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::ArrayOf[String]]

#urlString?

Parameters:

  • (String)

Returns:

  • (String, nil)


36
# File 'lib/telnyx/models/http.rb', line 36

optional :url, String

Instance Method Details

#to_hash{ headers: ::Array[::Array[String]], url: String }

Returns:

  • ({ headers: ::Array[::Array[String]], url: String })


41
# File 'sig/telnyx/models/http.rbs', line 41

def to_hash: -> { headers: ::Array[::Array[String]], url: String }