#region 程序集 FBroSharpInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// T:\Csharp\莫生\莫生\packages\FBroSharp.Common.4.20.38\FBroSharp\x64\FBroSharpInterface.dll
// Decompiled with ICSharpCode.Decompiler 8.1.1.7464
#endregion
using System;
using System.Collections.Generic;
using FBroSharp.DataType;
namespace FBroSharp.Lib;
public interface IFBroSharpResponse : IFBroSharpBase, IDisposable
{
//
// 摘要:
// 是否有效
bool IsValid { get; }
//
// 摘要:
// 是否只读
//
// Returns true if this object is read-only.
bool IsReadOnly();
//
// 摘要:
// 取错误
//
// Get the response error code. Returns ERR_NONE if there was no error.
int GetError();
//
// 摘要:
// 置错误
//
// Set the response error code. This can be used by custom scheme handlers to return
// errors during initial request processing.
void SetError(int error);
//
// 摘要:
// 取状态
//
// Get the response status code.
int GetStatus();
//
// 摘要:
// 置状态
//
// Set the response status code.
void SetStatus(int status);
//
// 摘要:
// 取状态文本
//
// Get the response status text.
string GetStatusText();
//
// 摘要:
// 置状态文本
//
// Set the response status text.
void SetStatusText(string statusText);
//
// 摘要:
// 取MIME类型
//
// Get the response mime type.
string GetMimeType();
//
// 摘要:
// 置MIME类型
//
// Set the response mime type.
void SetMimeType(string mimeType);
//
// 摘要:
// 取字符集
//
// Get the response charset.
string GetCharset();
//
// 摘要:
// 置字符集
//
// Set the response charset.
void SetCharset(string charset);
//
// 摘要:
// 取协议头_名称
//
// Get the value for the specified response header field.
string GetHeaderByName(string name);
//
// 摘要:
// 置协议头_名称
//
// Set the header |name| to |value|. If |overwrite| is true any existing values
// will be replaced with the new value. If |overwrite| is false any existing values
// will not be overwritten.
void SetHeaderByName(string name, string value, bool overwrite);
//
// 摘要:
// 取协议头数据
//
// Get all response header fields.
List<FBroSharpStringMap> GetHeaderMap();
//
// 摘要:
// 置协议头数据
//
// Set all response header fields.
void SetHeaderMap(FBroSharpStringMap inbuf);
//
// 摘要:
// 置协议头数据_数组
void SetHeaderMap_Array(List<FBroSharpStringMap> indata);
//
// 摘要:
// 取地址
//
// Get the resolved URL after redirects or changed as a result of HSTS.
string GetURL();
//
// 摘要:
// 置地址
//
// Set the resolved URL after redirects or changed as a result of HSTS.
void SetURL(string url);
}
#if false // 反编译日志
缓存中的 14 项
------------------
解析: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
找到单个程序集: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
从以下位置加载: "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll"
------------------
解析: "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
找到单个程序集: "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
从以下位置加载: "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll"
#endif