amalthea.net

Undocumented in source.

Public Imports

amalthea.libcore
public import amalthea.libcore;
Undocumented in source.

Members

Aliases

StdNetException
alias StdNetException = std.net.curl.HTTPStatusException
Undocumented in source.
StdNetException
alias StdNetException = std.net.curl.CurlException
Undocumented in source.
stdGet
alias stdGet = std.net.curl.get
Undocumented in source.
stdPost
alias stdPost = std.net.curl.post
Undocumented in source.
urlEncode
alias urlEncode = amalthea.dataprocessing.urlEncode
Undocumented in source.

Classes

AmaltheaNetException
class AmaltheaNetException

Exception for common errors in this module.

Functions

getCharset
string getCharset(const(char)[] url)

Gets content charset (possibly empty) by URL.

getContentType
string getContentType(char[] url)

Gets HTTP content type by URL.

getElementsByTag
auto getElementsByTag(string html, string tag)

This function searches all elements from HTML page with a specific tag.

getElementsByTagAndAttribute
auto getElementsByTagAndAttribute(string html, string tag, string attrName, string attrValue)

This function searches all elements by a specific tag and an attribute.

getHTMLPageTitle
string getHTMLPageTitle(string address)

This function returns title of Internet-page.

getHeaders
string[string] getHeaders(char[] url)

Gets HTTP response headers by URL.

getPage
UniString getPage(string url)

Get text content as amalthea.encoding.UniString by URL. The implementation of 'get' from the standard library is taken as a basis.

getRaw
ubyte[] getRaw(string url)

GET request to raw content.

isLinkToHTML
bool isLinkToHTML(string url)

Checks if the URL is a link to HTML page.

post
T[] post(const(char)[] url, string[string] postDict, HTTP conn)

POST request.

postRaw
ubyte[] postRaw(const(char)[] url, string[string] postDict, HTTP conn)

POST request to get an answer with raw content.

replaceSpecialMnemonics
string replaceSpecialMnemonics(string HTMLText)

Search and replace special characters in HTML for normal view.

Meta