Skip to content

Commit e61399b

Browse files
committed
added early access header
1 parent f5d6028 commit e61399b

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### Version: 2.16.0
2+
#### Date: Sep-3-2024
3+
4+
##### New Feature:
5+
- Added Early Access Header Support
6+
17
### Version: 2.15.0
28
#### Date: Jul-30-2024
39

Contentstack.Core/Configuration/ContentstackOptions.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,13 @@ public ContentstackOptions()
7474
{
7575
Timeout = 30000; // Set default value
7676
}
77-
}
7877

78+
/// <summary>
79+
/// TheEarlyAccessHeader used to set service which the user has early access to.
80+
/// </summary>
81+
public string[] EarlyAccessHeader { get; set; }
82+
}
83+
7984
internal class ContentstackRegionConverter : TypeConverter
8085
{
8186
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

Contentstack.Core/ContentstackClient.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public ContentstackClient(IOptions<ContentstackOptions> options)
8787
{
8888
this.SetHeader("access_token", _options.DeliveryToken);
8989
}
90+
if(_options.EarlyAccessHeader !=null)
91+
{
92+
this.SetHeader("x-header-ea", string.Join(",", _options.EarlyAccessHeader));
93+
}
9094
Config cnfig = new Config();
9195
cnfig.Environment = _options.Environment;
9296
if (_options.Host != null)

0 commit comments

Comments
 (0)