Show / Hide Table of Contents

Class BlockRequest

A block that can perform HTTP requests.

Inheritance
System.Object
ViewModelBase
BlockBase
BlockRequest
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
BlockBase.Label
BlockBase.Disabled
BlockBase.IsSelenium
BlockBase.IsCaptcha
BlockBase.FromLS(List<String>)
BlockBase.ReplaceValuesRecursive(String, BotData)
BlockBase.ReplaceValues(String, BotData)
BlockBase.ParseArguments(String, Char, Char)
BlockBase.UpdateSeleniumData(BotData)
BlockBase.InsertVariables(BotData, Boolean, Boolean, List<String>, String, String, String)
BlockBase.SaveScreenshot(Screenshot, BotData)
BlockBase.SaveScreenshot(Bitmap, BotData)
BlockBase.GetFirstAvailableFileName(String, String, String)
BlockBase.MakeValidFileName(String, Boolean)
BlockBase.TruncatePretty(String, Int32)
ViewModelBase.PropertyChanged
ViewModelBase.OnPropertyChanged(String)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib
Assembly: RuriLib.dll
Syntax
public class BlockRequest : BlockBase, INotifyPropertyChanged

Constructors

| Improve this Doc View Source

BlockRequest()

Creates a Request block.

Declaration
public BlockRequest()

Properties

| Improve this Doc View Source

AuthPass

The password for basic auth requests.

Declaration
public string AuthPass { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

AuthUser

The username for basic auth requests.

Declaration
public string AuthUser { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

AutoRedirect

Whether to perform automatic redirection in the case of 3xx headers.

Declaration
public bool AutoRedirect { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ContentType

The type of content the server should expect.

Declaration
public string ContentType { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

CustomCookies

The custom cookies that are sent in the HTTP request.

Declaration
public Dictionary<string, string> CustomCookies { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>
| Improve this Doc View Source

CustomHeaders

The custom headers that are sent in the HTTP request.

Declaration
public Dictionary<string, string> CustomHeaders { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>
| Improve this Doc View Source

DownloadPath

The path of the file where a FILE response needs to be stored.

Declaration
public string DownloadPath { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Method

The method of the HTTP request.

Declaration
public HttpMethod Method { get; set; }
Property Value
Type Description
Extreme.Net.HttpMethod
| Improve this Doc View Source

MultipartBoundary

The boundary that separates multipart contents.

Declaration
public string MultipartBoundary { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

MultipartContents

The list of contents to send in a multipart request.

Declaration
public List<MultipartContent> MultipartContents { get; set; }
Property Value
Type Description
System.Collections.Generic.List<MultipartContent>
| Improve this Doc View Source

PostData

The content of the request, sent after the headers. Use '\n' to input a linebreak.

Declaration
public string PostData { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ReadResponseSource

Whether to read the stream of data from the HTTP response. Set to false if only the headers are needed, in order to speed up the process.

Declaration
public bool ReadResponseSource { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

RequestType

The request type.

Declaration
public RequestType RequestType { get; set; }
Property Value
Type Description
RequestType
| Improve this Doc View Source

ResponseType

The type of response expected from the server.

Declaration
public ResponseType ResponseType { get; set; }
Property Value
Type Description
ResponseType
| Improve this Doc View Source

Url

The URL to call, including additional GET query parameters.

Declaration
public string Url { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

FromLS(String)

Builds a block from a line of LoliScript code.

Declaration
public override BlockBase FromLS(string line)
Parameters
Type Name Description
System.String line

The line of LoliScript code

Returns
Type Description
BlockBase

The parsed block object

Overrides
BlockBase.FromLS(String)
| Improve this Doc View Source

GetCustomCookies()

Builds a string containing custom cookies.

Declaration
public string GetCustomCookies()
Returns
Type Description
System.String

One cookie per line, with name and value separated by a colon

| Improve this Doc View Source

GetCustomHeaders()

Builds a string containing custom headers.

Declaration
public string GetCustomHeaders()
Returns
Type Description
System.String

One header per line, with name and value separated by a colon

| Improve this Doc View Source

GetMultipartContents()

Builds a string containing multipart content.

Declaration
public string GetMultipartContents()
Returns
Type Description
System.String

One content per line, with type, name and value separated by a colon

| Improve this Doc View Source

ParsePair(String)

Parses a pair of values separated by a colon.

Declaration
public static KeyValuePair<string, string> ParsePair(string pair)
Parameters
Type Name Description
System.String pair

The string containing colon-separated values

Returns
Type Description
System.Collections.Generic.KeyValuePair<System.String, System.String>

The pair of values.

| Improve this Doc View Source

Process(BotData)

Executes the actual block logic.

Declaration
public override void Process(BotData data)
Parameters
Type Name Description
BotData data

The BotData needed for variable replacement

Overrides
BlockBase.Process(BotData)
| Improve this Doc View Source

SetCustomCookies(String[])

Sets custom cookies from an array of lines.

Declaration
public void SetCustomCookies(string[] lines)
Parameters
Type Name Description
System.String[] lines

The lines containing the colon-separated name and value of the cookies

| Improve this Doc View Source

SetCustomHeaders(String[])

Sets custom headers from an array of lines.

Declaration
public void SetCustomHeaders(string[] lines)
Parameters
Type Name Description
System.String[] lines

The lines containing the colon-separated name and value of the headers

| Improve this Doc View Source

SetMultipartContents(String[])

Sets multipart contents from an array of lines.

Declaration
public void SetMultipartContents(string[] lines)
Parameters
Type Name Description
System.String[] lines

The lines containing the colon-separated type, name and value of the multipart contents

| Improve this Doc View Source

ToLS(Boolean)

Converts the block to LoliScript code.

Declaration
public override string ToLS(bool indent = true)
Parameters
Type Name Description
System.Boolean indent
Returns
Type Description
System.String
Overrides
BlockBase.ToLS(Boolean)

Implements

System.ComponentModel.INotifyPropertyChanged
  • Improve this Doc
  • View Source
Back to top Generated by DocFX