C# 클래스 NG.HttpClient.HttpRequest

Basic HttpRequest abstraction. This should not be used directly. Concrete HttpRequests should inherit from this class and must declare how to construct the WWW object. After instantiating an HttpRequest class you must call the Execute method to run the request. Options: useHttps - default: false Set this to use https protocol. timeOut Set this to the number of seconds to elapse before forcing a timeout. retryAttempts - default: 0 Set this to the number of times to retry the request. delayBetweenRetries - default: 0.25f Set this to the number of seconds to elapse before a retry is attempted. Call Cancel() at any time to cancel and dispose of the request. Call GetProgress() to check on the progress of the download. HandleSuccess and HandleError have been set with defaults to report common data about an http request. These methods are virtual so they can be extended or overwritten to serve any needs.
상속: IHttpRequest
파일 보기 프로젝트 열기: Naphier/NGTools

공개 프로퍼티들

프로퍼티 타입 설명
delayBetweenRetries float
resultType ResultData
retryAttempts int
timeOut float
useHttps bool

보호된 프로퍼티들

프로퍼티 타입 설명
_result HttpResult
filePath string
host string
www UnityEngine.WWW

공개 메소드들

메소드 설명
CanBeDestroyed ( ) : bool
Cancel ( ) : void
Execute ( ) : void
ExecuteCoroutine ( ) : IEnumerator
GetProgress ( ) : float
GetWWW ( ) : WWW
HandleError ( HttpResult result, WWW www ) : void
HandleSuccess ( HttpResult result, WWW www ) : void

보호된 메소드들

메소드 설명
HttpRequest ( string host, string filePath ) : System

메소드 상세

CanBeDestroyed() 공개 메소드

public CanBeDestroyed ( ) : bool
리턴 bool

Cancel() 공개 메소드

public Cancel ( ) : void
리턴 void

Execute() 공개 메소드

public Execute ( ) : void
리턴 void

ExecuteCoroutine() 공개 메소드

public ExecuteCoroutine ( ) : IEnumerator
리턴 IEnumerator

GetProgress() 공개 메소드

public GetProgress ( ) : float
리턴 float

GetWWW() 공개 추상적인 메소드

public abstract GetWWW ( ) : WWW
리턴 UnityEngine.WWW

HandleError() 공개 메소드

public HandleError ( HttpResult result, WWW www ) : void
result HttpResult
www UnityEngine.WWW
리턴 void

HandleSuccess() 공개 메소드

public HandleSuccess ( HttpResult result, WWW www ) : void
result HttpResult
www UnityEngine.WWW
리턴 void

HttpRequest() 보호된 메소드

protected HttpRequest ( string host, string filePath ) : System
host string
filePath string
리턴 System

프로퍼티 상세

_result 보호되어 있는 프로퍼티

protected HttpResult,NG.HttpClient _result
리턴 HttpResult

delayBetweenRetries 공개적으로 프로퍼티

public float delayBetweenRetries
리턴 float

filePath 보호되어 있는 프로퍼티

protected string filePath
리턴 string

host 보호되어 있는 프로퍼티

protected string host
리턴 string

resultType 공개적으로 프로퍼티

public ResultData resultType
리턴 ResultData

retryAttempts 공개적으로 프로퍼티

public int retryAttempts
리턴 int

timeOut 공개적으로 프로퍼티

public float timeOut
리턴 float

useHttps 공개적으로 프로퍼티

public bool useHttps
리턴 bool

www 보호되어 있는 프로퍼티

protected WWW,UnityEngine www
리턴 UnityEngine.WWW