Class RequestModuleExtensions
Set of extension methods used to bring request module support
Namespace: PnP.Core.Model
Assembly: PnP.Core.dll
Syntax
public static class RequestModuleExtensions : object
Methods
WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<String, String>, Action<Dictionary<String, String>>)
Executes this request with additional request headers
Declaration
public static TModel WithHeaders<TModel>(this ISupportModules<TModel> dataModel, Dictionary<string, string> headers, Action<Dictionary<string, string>> responseHeaders = null)
Parameters
ISupportModules<TModel>
dataModel
Model instance to operate on |
Dictionary<String, String>
headers
Collection of headers to add to add to the request |
Action<Dictionary<String, String>>
responseHeaders
Delegate that can be invoked to pass along the response headers |
Returns
TModel
The passed model instance |
Type Parameters
TModel
Model type |