Class CurlContext
Assembly: Glitch9.IO.dll
Syntax
Fields
|
Edit this page
View Source
Declaration
public const string HeaderFormat = "--header \"{0}: {1}\" ^\n"
Field Value
|
Edit this page
View Source
MethodFormat
Declaration
public const string MethodFormat = "curl --location --request {0} \"{1}\" ^\n"
Field Value
|
Edit this page
View Source
None
Declaration
public const string None = "<none>"
Field Value
|
Edit this page
View Source
Tag_RequestMethod
Declaration
public const string Tag_RequestMethod = "{0}-Request"
Field Value
|
Edit this page
View Source
Tag_ResponseMethod
Declaration
public const string Tag_ResponseMethod = "{0}-Response"
Field Value
Properties
|
Edit this page
View Source
DataTransferMode
Declaration
public DataTransferMode DataTransferMode { get; }
Property Value
|
Edit this page
View Source
Endpoint
Declaration
public string Endpoint { get; set; }
Property Value
|
Edit this page
View Source
Method
Declaration
public string Method { get; set; }
Property Value
|
Edit this page
View Source
RequestBody
Declaration
public string RequestBody { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string RequestHeaders { get; set; }
Property Value
|
Edit this page
View Source
ResponseBody
Declaration
public string ResponseBody { get; set; }
Property Value
|
Edit this page
View Source
ResponseCode
Declaration
public long ResponseCode { get; set; }
Property Value
|
Edit this page
View Source
ResponseContentType
Declaration
public string ResponseContentType { get; set; }
Property Value
|
Edit this page
View Source
ResponseMimeType
Declaration
public MimeType ResponseMimeType { get; }
Property Value
Methods
|
Edit this page
View Source
AppendFormRequestBody(string, string)
Declaration
public void AppendFormRequestBody(string key, string value)
Parameters
|
Edit this page
View Source
Declaration
public void AppendRequestHeader(HttpHeader header)
Parameters
|
Edit this page
View Source
GetDataTransferMode()
Declaration
public string GetDataTransferMode()
Returns
|
Edit this page
View Source
GetRequestBody()
Declaration
public string GetRequestBody()
Returns
|
Edit this page
View Source
Declaration
public string GetRequestHeaders()
Returns
|
Edit this page
View Source
GetResponseBody()
Declaration
public string GetResponseBody()
Returns
|
Edit this page
View Source
GetResponseContentType()
Declaration
public string GetResponseContentType()
Returns
|
Edit this page
View Source
GetResponseMimeType()
Declaration
public string GetResponseMimeType()
Returns
|
Edit this page
View Source
GetUrl(out bool)
Declaration
public string GetUrl(out bool invalidUrl)
Parameters
| Type |
Name |
Description |
| bool |
invalidUrl |
|
Returns
|
Edit this page
View Source
SanitizeRequestBodyForLog(string, object)
Declaration
public static string SanitizeRequestBodyForLog(string body, object requestBodySource = null)
Parameters
Returns
|
Edit this page
View Source
TrimOrSetFallback(string, string)
Declaration
public static string TrimOrSetFallback(string text, string fallback)
Parameters
Returns
Extension Methods