@@ -30,24 +30,24 @@ module FinchAPI
3030 sig { returns ( T . nilable ( String ) ) }
3131 attr_accessor :data
3232
33- # The HTTP headers to include on the forwarded request. This value must be
34- # specified as an object of key-value pairs. Example:
35- # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
36- sig { returns ( T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ) }
37- attr_accessor :headers
38-
3933 # The query parameters for the forwarded request. This value must be specified as
4034 # a valid JSON object rather than a query string.
4135 sig { returns ( T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ) }
4236 attr_accessor :params
4337
38+ # The HTTP headers to include on the forwarded request. This value must be
39+ # specified as an object of key-value pairs. Example:
40+ # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
41+ sig { returns ( T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ) }
42+ attr_accessor :request_headers
43+
4444 sig do
4545 params (
4646 method_ : String ,
4747 route : String ,
4848 data : T . nilable ( String ) ,
49- headers : T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ,
5049 params : T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ,
50+ request_headers : T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ,
5151 request_options : FinchAPI ::RequestOptions ::OrHash
5252 ) . returns ( T . attached_class )
5353 end
@@ -62,13 +62,13 @@ module FinchAPI
6262 # The body for the forwarded request. This value must be specified as either a
6363 # string or a valid JSON object.
6464 data : nil ,
65- # The HTTP headers to include on the forwarded request. This value must be
66- # specified as an object of key-value pairs. Example:
67- # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
68- headers : nil ,
6965 # The query parameters for the forwarded request. This value must be specified as
7066 # a valid JSON object rather than a query string.
7167 params : nil ,
68+ # The HTTP headers to include on the forwarded request. This value must be
69+ # specified as an object of key-value pairs. Example:
70+ # `{"Content-Type": "application/xml", "X-API-Version": "v1" }`
71+ request_headers : nil ,
7272 request_options : { }
7373 )
7474 end
@@ -79,8 +79,8 @@ module FinchAPI
7979 method_ : String ,
8080 route : String ,
8181 data : T . nilable ( String ) ,
82- headers : T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ,
8382 params : T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ,
83+ request_headers : T . nilable ( T ::Hash [ Symbol , T . nilable ( T . anything ) ] ) ,
8484 request_options : FinchAPI ::RequestOptions
8585 }
8686 )
0 commit comments