C# 클래스 SharePointAuthenticationSkeleton.HttpUtility

파일 보기 프로젝트 열기: jwillmer/SharePointAuthentication

공개 메소드들

메소드 설명
ParseJson ( JsonObject jObj, IJsonValue>.Dictionary result ) : IJsonValue>.Dictionary

Parses a JSON object recursively into a dictionary of name value pairs

SendHttpRequest ( Uri uri, HttpMethod method, Stream requestContent = null, string contentType = null, HttpClientHandler clientHandler = null, string>.Dictionary headers = null ) : Task

Sends an http request to the specified uri and returns the response as a byte array

SendODataJsonRequest ( Uri uri, HttpMethod method, Stream requestContent, HttpClientHandler clientHandler, SharePointAuthenticationSkeleton.Helpers.SharePointAuthentication authUtility, string>.Dictionary headers = null ) : Task

Sends a JSON OData request appending SPO auth cookies to the request header.

SendODataJsonRequestWithCanary ( Uri uri, HttpMethod method, Stream requestContent, HttpClientHandler clientHandler, SharePointAuthenticationSkeleton.Helpers.SharePointAuthentication authUtility ) : Task

Sends a JSON OData request appending the SharePoint canary to the request header. Appending the canary to the request is necessary to perform write operations (e.g. create, update, delete list items) The canary is a security measure to prevent cross site scripting attacks

메소드 상세

ParseJson() 공개 정적인 메소드

Parses a JSON object recursively into a dictionary of name value pairs
public static ParseJson ( JsonObject jObj, IJsonValue>.Dictionary result ) : IJsonValue>.Dictionary
jObj JsonObject The root JSON object
result IJsonValue>.Dictionary The reference to the resulting dictionary
리턴 IJsonValue>.Dictionary

SendHttpRequest() 공개 정적인 메소드

Sends an http request to the specified uri and returns the response as a byte array
public static SendHttpRequest ( Uri uri, HttpMethod method, Stream requestContent = null, string contentType = null, HttpClientHandler clientHandler = null, string>.Dictionary headers = null ) : Task
uri System.Uri The request uri
method HttpMethod The http method
requestContent Stream A stream containing the request content
contentType string The content type of the http request
clientHandler System.Net.Http.HttpClientHandler The request client handler
headers string>.Dictionary The http headers to append to the request
리턴 Task

SendODataJsonRequest() 공개 정적인 메소드

Sends a JSON OData request appending SPO auth cookies to the request header.
public static SendODataJsonRequest ( Uri uri, HttpMethod method, Stream requestContent, HttpClientHandler clientHandler, SharePointAuthenticationSkeleton.Helpers.SharePointAuthentication authUtility, string>.Dictionary headers = null ) : Task
uri System.Uri The request uri
method HttpMethod The http method
requestContent Stream A stream containing the request content
clientHandler System.Net.Http.HttpClientHandler The request client handler
authUtility SharePointAuthenticationSkeleton.Helpers.SharePointAuthentication An instance of the auth helper to perform authenticated calls to SPO
headers string>.Dictionary The http headers to append to the request
리턴 Task

SendODataJsonRequestWithCanary() 공개 정적인 메소드

Sends a JSON OData request appending the SharePoint canary to the request header. Appending the canary to the request is necessary to perform write operations (e.g. create, update, delete list items) The canary is a security measure to prevent cross site scripting attacks
public static SendODataJsonRequestWithCanary ( Uri uri, HttpMethod method, Stream requestContent, HttpClientHandler clientHandler, SharePointAuthenticationSkeleton.Helpers.SharePointAuthentication authUtility ) : Task
uri System.Uri The request uri
method HttpMethod The http method
requestContent Stream A stream containing the request content
clientHandler System.Net.Http.HttpClientHandler The request client handler
authUtility SharePointAuthenticationSkeleton.Helpers.SharePointAuthentication An instance of the auth helper to perform authenticated calls to SPO
리턴 Task