Class Functions
- Namespace
- Soup
- Assembly
- Soup-3.0.dll
public static class Functions
- Inheritance
-
Functions
- Inherited Members
Methods
CheckVersion(uint, uint, uint)
public static bool CheckVersion(uint major, uint minor, uint micro)
Parameters
Returns
CookieJarErrorQuark()
[Version("3.8")]
public static Quark CookieJarErrorQuark()
Returns
CookieParse(string, Uri?)
public static Cookie? CookieParse(string header, Uri? origin)
Parameters
Returns
CookiesFree(SList)
public static void CookiesFree(SList cookies)
Parameters
cookiesSList
CookiesFromRequest(Message)
public static SList CookiesFromRequest(Message msg)
Parameters
msgMessage
Returns
CookiesFromResponse(Message)
public static SList CookiesFromResponse(Message msg)
Parameters
msgMessage
Returns
CookiesToCookieHeader(SList)
public static string CookiesToCookieHeader(SList cookies)
Parameters
cookiesSList
Returns
CookiesToRequest(SList, Message)
public static void CookiesToRequest(SList cookies, Message msg)
Parameters
CookiesToResponse(SList, Message)
public static void CookiesToResponse(SList cookies, Message msg)
Parameters
DateTimeNewFromHttpString(string)
public static DateTime? DateTimeNewFromHttpString(string dateString)
Parameters
dateStringstring
Returns
DateTimeToString(DateTime, DateFormat)
public static string DateTimeToString(DateTime date, DateFormat format)
Parameters
dateDateTimeformatDateFormat
Returns
FormEncodeDatalist(Data)
public static string FormEncodeDatalist(Data formDataSet)
Parameters
formDataSetData
Returns
FormEncodeHash(HashTable)
public static string FormEncodeHash(HashTable formDataSet)
Parameters
formDataSetHashTable
Returns
FormEncodeValist(string, nint)
public static string FormEncodeValist(string firstField, nint args)
Parameters
Returns
GetMajorVersion()
public static uint GetMajorVersion()
Returns
GetMicroVersion()
public static uint GetMicroVersion()
Returns
GetMinorVersion()
public static uint GetMinorVersion()
Returns
HeaderContains(string, string)
public static bool HeaderContains(string header, string token)
Parameters
Returns
HeaderContainsCaseSensitive(string, string)
[Version("3.8")]
public static bool HeaderContainsCaseSensitive(string header, string token)
Parameters
Returns
HeaderFreeList(SList)
public static void HeaderFreeList(SList list)
Parameters
listSList
HeaderFreeParamList(HashTable)
public static void HeaderFreeParamList(HashTable paramList)
Parameters
paramListHashTable
HeaderGStringAppendParam(String, string, string?)
public static void HeaderGStringAppendParam(String @string, string name, string? value)
Parameters
HeaderGStringAppendParamQuoted(String, string, string)
public static void HeaderGStringAppendParamQuoted(String @string, string name, string value)
Parameters
HeaderParseList(string)
public static SList HeaderParseList(string header)
Parameters
headerstring
Returns
HeaderParseParamList(string)
public static HashTable HeaderParseParamList(string header)
Parameters
headerstring
Returns
HeaderParseParamListStrict(string)
public static HashTable? HeaderParseParamListStrict(string header)
Parameters
headerstring
Returns
HeaderParseSemiParamList(string)
public static HashTable HeaderParseSemiParamList(string header)
Parameters
headerstring
Returns
HeaderParseSemiParamListStrict(string)
public static HashTable? HeaderParseSemiParamListStrict(string header)
Parameters
headerstring
Returns
HeadersParse(string, int, MessageHeaders)
public static bool HeadersParse(string str, int len, MessageHeaders dest)
Parameters
strstringlenintdestMessageHeaders
Returns
HeadersParseRequest(string, int, MessageHeaders, out string, out string, out HTTPVersion)
public static uint HeadersParseRequest(string str, int len, MessageHeaders reqHeaders, out string reqMethod, out string reqPath, out HTTPVersion ver)
Parameters
strstringlenintreqHeadersMessageHeadersreqMethodstringreqPathstringverHTTPVersion
Returns
HeadersParseResponse(string, int, MessageHeaders, out HTTPVersion, out uint, out string)
public static bool HeadersParseResponse(string str, int len, MessageHeaders headers, out HTTPVersion ver, out uint statusCode, out string reasonPhrase)
Parameters
strstringlenintheadersMessageHeadersverHTTPVersionstatusCodeuintreasonPhrasestring
Returns
HeadersParseStatusLine(string, out HTTPVersion, out uint, out string)
public static bool HeadersParseStatusLine(string statusLine, out HTTPVersion ver, out uint statusCode, out string reasonPhrase)
Parameters
statusLinestringverHTTPVersionstatusCodeuintreasonPhrasestring
Returns
MessageHeadersIterInit(out MessageHeadersIter, MessageHeaders)
public static void MessageHeadersIterInit(out MessageHeadersIter iter, MessageHeaders hdrs)
Parameters
iterMessageHeadersIterhdrsMessageHeaders
SessionErrorQuark()
public static Quark SessionErrorQuark()
Returns
StatusGetPhrase(uint)
public static string StatusGetPhrase(uint statusCode)
Parameters
statusCodeuint
Returns
TldDomainIsPublicSuffix(string)
public static bool TldDomainIsPublicSuffix(string domain)
Parameters
domainstring
Returns
TldErrorQuark()
public static Quark TldErrorQuark()
Returns
TldGetBaseDomain(string)
public static string TldGetBaseDomain(string hostname)
Parameters
hostnamestring
Returns
Exceptions
- GException
Throws a GException in case of an error.
UriDecodeDataUri(string, out string?)
public static Bytes UriDecodeDataUri(string uri, out string? contentType)
Parameters
Returns
UriEqual(Uri, Uri)
public static bool UriEqual(Uri uri1, Uri uri2)
Parameters
Returns
WebsocketClientPrepareHandshake(Message, string?, string[]?, PtrArray?)
public static void WebsocketClientPrepareHandshake(Message msg, string? origin, string[]? protocols, PtrArray? supportedExtensions)
Parameters
WebsocketErrorQuark()
public static Quark WebsocketErrorQuark()
Returns
WebsocketServerCheckHandshake(ServerMessage, string?, string[]?, PtrArray?)
public static bool WebsocketServerCheckHandshake(ServerMessage msg, string? origin, string[]? protocols, PtrArray? supportedExtensions)
Parameters
msgServerMessageoriginstringprotocolsstring[]supportedExtensionsPtrArray
Returns
Exceptions
- GException
Throws a GException in case of an error.