JumpKick.HttpLib/Builder/RequestBuilder.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using JumpKick.HttpLib.Provider;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace JumpKick.HttpLib.Builder
{
public partial class RequestBuilder
{
private string url;
private HttpVerb method;
public RequestBuilder(string url, HttpVerb method)
{
this.url = url;
this.method = method;
}
public void Go()
{
/*
* If an actionprovider has not been set, we create one.
*/
if(this.actionProvider == null)
{
this.actionProvider = new SettableActionProvider(success, fail);
}
Request req = new Request
{
Url = url,
Method = method,
Action = actionProvider,
Auth = authProvider,
Headers = headerProvider,
Body = bodyProvider
};
req.Go();
}
public HttpVerb Method { get { return method; } }
public String Url { get { return url; } }
public Action<WebHeaderCollection,Stream> GetOnSuccess()
{
后面还有 4 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。