Skip to content

Commit c8bb6e8

Browse files
committed
Releasing version 5.0.1.
1 parent 505f634 commit c8bb6e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+186
-96
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
# Next
55

6+
## [5.0.1](https://github.com/MLSDev/TRON/releases/tag/5.0.1)
7+
8+
* `BaseRequest.headers` now default to `HTTPHeaders.default` to allow sending Alamofire default headers such as "Accept-Language", "Accept-Encoding", "User-Agent".
9+
610
## [5.0.0](https://github.com/MLSDev/TRON/releases/tag/5.0.0)
711

812
## [5.0.0-rc.1](https://github.com/MLSDev/TRON/releases/tag/5.0.0-rc.1)

Source/TRON/BaseRequest.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ open class BaseRequest<Model, ErrorModel> {
5757
/// Defines how parameters are encoded.
5858
open var parameterEncoding: Alamofire.ParameterEncoding
5959

60-
/// Headers, that should be used for current request.
61-
/// - Note: Resulting headers may include global headers from `TRON` instance and `Alamofire.Session` defaultHTTPHeaders.
62-
open var headers: HTTPHeaders = .init()
60+
/// Headers, that should be used for current request. Defaults to HTTPHeaders.default
61+
open var headers: HTTPHeaders = .default
6362

6463
/// URL builder for current request
6564
open var urlBuilder: URLBuilder

Supporting files/Framework.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>5.0.0</string>
18+
<string>5.0.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

TRON.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'TRON'
3-
s.version = "5.0.0"
3+
s.version = "5.0.1"
44
s.license = 'MIT'
55
s.summary = 'Lightweight network abstraction layer, written on top of Alamofire'
66
s.homepage = 'https://github.com/MLSDev/TRON'

docs/Classes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ <h4>Declaration</h4>
506506
</article>
507507
</div>
508508
<section class="footer">
509-
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-02-17)</p>
509+
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-03-10)</p>
510510
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
511511
</section>
512512
</body>

docs/Classes/APIError.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ <h4>Declaration</h4>
385385
</article>
386386
</div>
387387
<section class="footer">
388-
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-02-17)</p>
388+
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-03-10)</p>
389389
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
390390
</section>
391391
</body>

docs/Classes/APIRequest.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ <h4>Declaration</h4>
384384
</article>
385385
</div>
386386
<section class="footer">
387-
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-02-17)</p>
387+
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-03-10)</p>
388388
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
389389
</section>
390390
</body>

docs/Classes/APIStub.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ <h4>Parameters</h4>
528528
</article>
529529
</div>
530530
<section class="footer">
531-
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-02-17)</p>
531+
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-03-10)</p>
532532
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
533533
</section>
534534
</body>

docs/Classes/BaseRequest.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,7 @@ <h4>Declaration</h4>
336336
<section class="section">
337337
<div class="pointer"></div>
338338
<div class="abstract">
339-
<p>Headers, that should be used for current request.</p>
340-
<div class="aside aside-note">
341-
<p class="aside-title">Note</p>
342-
Resulting headers may include global headers from <code><a href="../Classes/TRON.html">TRON</a></code> instance and <code>Alamofire.Session</code> defaultHTTPHeaders.
343-
344-
</div>
339+
<p>Headers, that should be used for current request. Defaults to HTTPHeaders.default</p>
345340

346341
</div>
347342
<div class="declaration">
@@ -1365,7 +1360,7 @@ <h4>Return Value</h4>
13651360
</article>
13661361
</div>
13671362
<section class="footer">
1368-
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-02-17)</p>
1363+
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-03-10)</p>
13691364
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
13701365
</section>
13711366
</body>

docs/Classes/CodableParser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h4>Declaration</h4>
250250
</article>
251251
</div>
252252
<section class="footer">
253-
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-02-17)</p>
253+
<p>&copy; 2020 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2020-03-10)</p>
254254
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
255255
</section>
256256
</body>

0 commit comments

Comments
 (0)