C# Class UnityEditor.RestService.Handler

显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Methods

Method Description
HandleDelete ( UnityEditor.RestService.Request request, UnityEditorInternal.JSONValue payload ) : UnityEditorInternal.JSONValue
HandleGet ( UnityEditor.RestService.Request request, UnityEditorInternal.JSONValue payload ) : UnityEditorInternal.JSONValue
HandlePost ( UnityEditor.RestService.Request request, UnityEditorInternal.JSONValue payload ) : UnityEditorInternal.JSONValue
Handler ( ) : System
ToJSON ( IEnumerable strings ) : UnityEditorInternal.JSONValue

Private Methods

Method Description
CallSafely ( UnityEditor.RestService.Request request, string payload, Response writeResponse, Func method ) : void
InvokeDelete ( UnityEditor.RestService.Request request, string payload, Response writeResponse ) : void
InvokeGet ( UnityEditor.RestService.Request request, string payload, Response writeResponse ) : void
InvokePost ( UnityEditor.RestService.Request request, string payload, Response writeResponse ) : void
RespondWithException ( Response writeResponse, RestRequestException rre ) : void
ThrowInvalidJSONException ( ) : void

Method Details

HandleDelete() protected method

protected HandleDelete ( UnityEditor.RestService.Request request, UnityEditorInternal.JSONValue payload ) : UnityEditorInternal.JSONValue
request UnityEditor.RestService.Request
payload UnityEditorInternal.JSONValue
return UnityEditorInternal.JSONValue

HandleGet() protected method

protected HandleGet ( UnityEditor.RestService.Request request, UnityEditorInternal.JSONValue payload ) : UnityEditorInternal.JSONValue
request UnityEditor.RestService.Request
payload UnityEditorInternal.JSONValue
return UnityEditorInternal.JSONValue

HandlePost() protected method

protected HandlePost ( UnityEditor.RestService.Request request, UnityEditorInternal.JSONValue payload ) : UnityEditorInternal.JSONValue
request UnityEditor.RestService.Request
payload UnityEditorInternal.JSONValue
return UnityEditorInternal.JSONValue

Handler() protected method

protected Handler ( ) : System
return System

ToJSON() protected static method

protected static ToJSON ( IEnumerable strings ) : UnityEditorInternal.JSONValue
strings IEnumerable
return UnityEditorInternal.JSONValue