C# 클래스 CurlSharp.Curl

Top-level class for initialization and cleanup.
It also implements static methods for capabilities that don't logically belong in a class.
파일 보기 프로젝트 열기: WarlaxZ/Jackett 1 사용 예제들

공개 메소드들

메소드 설명
Escape ( string url, int length ) : string

URL encode a String.

GetVersionInfo ( CurlVersion ver ) : CurlVersionInfoData

Get a CurlVersionInfoData object.

GlobalCleanup ( ) : void

Process-wide cleanup -- call just before exiting process.

While it's not necessary that your program call this method before exiting, doing so will prevent leaks of native cURL resources.

GlobalInit ( CurlInitFlag flags ) : CurlCode

Process-wide initialization -- call only once per process.

Unescape ( string url, int length ) : string

URL decode a String.

비공개 메소드들

메소드 설명
Curl ( ) : System

Class constructor - initialize global status.

EnsureCurl ( ) : void

Called by other classes to ensure valid cURL state.

메소드 상세

Escape() 공개 정적인 메소드

URL encode a String.
/// Thrown if cURL isn't properly initialized. ///
public static Escape ( string url, int length ) : string
url string The string to URL encode.
length int /// Input string length; /// use 0 for cURL to determine. ///
리턴 string

GetVersionInfo() 공개 정적인 메소드

Get a CurlVersionInfoData object.
/// Thrown if cURL isn't properly initialized. ///
public static GetVersionInfo ( CurlVersion ver ) : CurlVersionInfoData
ver CurlVersion /// Specify a , such as /// CurlVersion.Now. ///
리턴 CurlVersionInfoData

GlobalCleanup() 공개 정적인 메소드

Process-wide cleanup -- call just before exiting process.
While it's not necessary that your program call this method before exiting, doing so will prevent leaks of native cURL resources.
public static GlobalCleanup ( ) : void
리턴 void

GlobalInit() 공개 정적인 메소드

Process-wide initialization -- call only once per process.
public static GlobalInit ( CurlInitFlag flags ) : CurlCode
flags CurlInitFlag /// An or'd combination of /// members. ///
리턴 CurlCode

Unescape() 공개 정적인 메소드

URL decode a String.
/// Thrown if cURL isn't properly initialized. ///
public static Unescape ( string url, int length ) : string
url string The string to URL decode.
length int /// Input string length; /// use 0 for cURL to determine. ///
리턴 string