C# Class MBUtilities.URL

Afficher le fichier Open project: MatthewCox/MoronBot

Méthodes publiques

Méthode Description
FetchURL ( string url ) : WebPage

Fetches the page a URL refers to, and returns a WebPage struct.

Pastebin ( string text, string title = "", string expire = "10M", string format = "text", string privacy = "1" ) : string
ReceiveFromServer ( Stream responseStream ) : string
SendToServer ( string url ) : Stream
SendToServer ( string url, string text ) : Stream
Shorten ( string url ) : string
StripHTML ( string text ) : string

Private Methods

Méthode Description
CheckValidationResult ( object sender, System certificate, System chain, System sslPolicyErrors ) : bool
GooglKey ( ) : string
ShortenGoogl ( string url ) : string

Method Details

FetchURL() public static méthode

Fetches the page a URL refers to, and returns a WebPage struct.
public static FetchURL ( string url ) : WebPage
url string The URL to fetch.
Résultat WebPage

Pastebin() public static méthode

public static Pastebin ( string text, string title = "", string expire = "10M", string format = "text", string privacy = "1" ) : string
text string
title string
expire string
format string
privacy string
Résultat string

ReceiveFromServer() public static méthode

public static ReceiveFromServer ( Stream responseStream ) : string
responseStream Stream
Résultat string

SendToServer() public static méthode

public static SendToServer ( string url ) : Stream
url string
Résultat Stream

SendToServer() public static méthode

public static SendToServer ( string url, string text ) : Stream
url string
text string
Résultat Stream

Shorten() public static méthode

public static Shorten ( string url ) : string
url string
Résultat string

StripHTML() public static méthode

public static StripHTML ( string text ) : string
text string
Résultat string