File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
- using HttpMouse . Abstractions ;
1
+ using HttpMouse ;
2
+ using HttpMouse . Abstractions ;
2
3
using HttpMouse . Implementions ;
3
4
using Microsoft . AspNetCore . Builder ;
4
5
using Microsoft . AspNetCore . Http ;
5
6
using Microsoft . AspNetCore . Routing ;
6
7
using Microsoft . Extensions . Configuration ;
7
- using Microsoft . Extensions . DependencyInjection ;
8
8
using Microsoft . Extensions . Options ;
9
9
using System ;
10
10
using System . Net . Http ;
13
13
using Yarp . ReverseProxy . Forwarder ;
14
14
using Yarp . ReverseProxy . Transforms ;
15
15
16
- namespace HttpMouse
16
+ namespace Microsoft . Extensions . DependencyInjection
17
17
{
18
+ /// <summary>
19
+ /// HttpMouse的相关扩展
20
+ /// </summary>
18
21
public static class HttpMouseExtensions
19
22
{
20
23
/// <summary>
Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ namespace HttpMouse
9
9
public class HttpMouseOptions
10
10
{
11
11
/// <summary>
12
- /// 密钥
12
+ /// 连接密钥
13
13
/// </summary>
14
14
public string ? Key { get ; set ; }
15
15
16
16
/// <summary>
17
- /// 请求配置
17
+ /// 客户端域名的请求配置
18
18
/// </summary>
19
19
public Dictionary < string , ForwarderRequestConfig > HttpRequest { get ; set ; } = new ( ) ;
20
20
21
21
/// <summary>
22
- /// 错误返回
22
+ /// 错误回退配置
23
23
/// </summary>
24
24
public FallbackConfig Fallback { get ; set ; } = new FallbackConfig ( ) ;
25
25
@@ -29,17 +29,17 @@ public class HttpMouseOptions
29
29
public class FallbackConfig
30
30
{
31
31
/// <summary>
32
- /// 状态码
32
+ /// 响应状态码
33
33
/// </summary>
34
34
public int StatusCode { get ; set ; } = 503 ;
35
35
36
36
/// <summary>
37
- /// 内容类型
37
+ /// 响应内容类型
38
38
/// </summary>
39
39
public string ContentType { get ; set ; } = "application/problem+json" ;
40
40
41
41
/// <summary>
42
- /// 内容文件路径
42
+ /// 响应内容文件路径
43
43
/// </summary>
44
44
public string ContentFile { get ; set ; } = "fallback.json" ;
45
45
}
You can’t perform that action at this time.
0 commit comments