Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Microsoft Graph Client by adding more setter for Request Headers #800

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,33 @@ codeunit 9353 "Graph Optional Parameters"
SetRequestHeader('IF-Match', "Value");
end;

/// <summary>
/// Sets the value for 'If-None-Match' HttpHeader for a request.
/// </summary>
/// <param name="Value">Text value specifying the HttpHeader value</param>
procedure SetIfNoneMatchRequestHeader("Value": Text)
begin
SetRequestHeader('If-None-Match', "Value");
end;

/// <summary>
/// Sets the value for 'Prefer' HttpHeader for a request.
/// </summary>
/// <param name="Value">Text value specifying the HttpHeader value</param>
procedure SetPreferRequestHeader("Value": Text)
begin
SetRequestHeader('Prefer', "Value");
end;

/// <summary>
/// Sets the value for 'ConsistencyLevel' HttpHeader for a request.
/// </summary>
/// <param name="Value">Text value specifying the HttpHeader value</param>
procedure SetConsistencyLevelRequestHeader("Value": Text)
begin
SetRequestHeader('ConsistencyLevel', "Value");
end;

local procedure SetRequestHeader(Header: Text; HeaderValue: Text)
begin
RequestHeaders.Remove(Header);
Expand Down
Loading