mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-27 20:46:51 -05:00
50 lines
717 B
Go
50 lines
717 B
Go
package http
|
|
|
|
var resp400 = &ResponseConfig{
|
|
Version: &Version{
|
|
Value: "1.1",
|
|
},
|
|
Status: &Status{
|
|
Code: "400",
|
|
Reason: "Bad Request",
|
|
},
|
|
Header: []*Header{
|
|
{
|
|
Name: "Connection",
|
|
Value: []string{"close"},
|
|
},
|
|
{
|
|
Name: "Cache-Control",
|
|
Value: []string{"private"},
|
|
},
|
|
{
|
|
Name: "Content-Length",
|
|
Value: []string{"0"},
|
|
},
|
|
},
|
|
}
|
|
|
|
var resp404 = &ResponseConfig{
|
|
Version: &Version{
|
|
Value: "1.1",
|
|
},
|
|
Status: &Status{
|
|
Code: "404",
|
|
Reason: "Not Found",
|
|
},
|
|
Header: []*Header{
|
|
{
|
|
Name: "Connection",
|
|
Value: []string{"close"},
|
|
},
|
|
{
|
|
Name: "Cache-Control",
|
|
Value: []string{"private"},
|
|
},
|
|
{
|
|
Name: "Content-Length",
|
|
Value: []string{"0"},
|
|
},
|
|
},
|
|
}
|