- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 143 for localhost (0.17 seconds)
-
cmd/net.go
// addresses. I.e, 0.0.0.0:9000 like ":9000" refers to port // 9000 on localhost. if host.Name != "" && host.Name != net.IPv4zero.String() && host.Name != net.IPv6zero.String() { localHost, err := isLocalHost(host.Name, host.Port.String(), host.Port.String()) if err != nil { return err } if !localHost { return config.ErrInvalidAddressFlag(nil).Msg("host in server address should be this server") }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.6K bytes - Click Count (1) -
internal/config/etcd/etcd_test.go
}{ // Invalid inputs {"https://localhost:2379,http://localhost:2380", nil, false, false}, {",,,", nil, false, false}, {"", nil, false, false}, {"ftp://localhost:2379", nil, false, false}, {"http://localhost:2379000", nil, false, false}, // Valid inputs { "https://localhost:2379,https://localhost:2380", []string{ "https://localhost:2379", "https://localhost:2380", }, true, true, },Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 2.1K bytes - Click Count (0) -
cmd/net_test.go
{"", "", false, errors.New("unable to process empty address")}, {":9000", ":9000", true, nil}, {"localhost:9000", ":9000", true, nil}, {"localhost:9000", "http://localhost:9000", true, nil}, {"http://localhost:9000", ":9000", true, nil}, {"http://localhost:9000", "http://localhost:9000", true, nil}, {"http://8.8.8.8:9000", "http://localhost:9000", false, nil}, } for _, testCase := range testCases {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 9.2K bytes - Click Count (0) -
cmd/endpoint_test.go
{[]string{"http://localhost:9000/d1", "http://localhost:9001/d2", "http://localhost:9002/d3", "http://localhost:9003/d4"}, []string{"localhost:9000", "localhost:9001", "localhost:9002", "localhost:9003"}, "localhost:9000"}, }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 18.9K bytes - Click Count (0) -
docs/ru/docs/tutorial/cors.md
## Источник { #origin } Источник — это совокупность протокола (`http`, `https`), домена (`myapp.com`, `localhost`, `localhost.tiangolo.com`) и порта (`80`, `443`, `8080`). Поэтому это три разных источника: * `http://localhost` * `https://localhost` * `http://localhost:8080` Даже если они все расположены в `localhost`, они используют разные протоколы или порты, а значит, являются разными источниками. ## Шаги { #steps }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 8.8K bytes - Click Count (0) -
internal/config/config_test.go
}, // Keys and input order of k=v is same. { input: `connection_string="host=localhost port=2832" comment="really long comment"`, keys: []string{"connection_string", "comment"}, expectedFields: map[string]struct{}{ `connection_string="host=localhost port=2832"`: {}, `comment="really long comment"`: {}, }, }, // Keys with spaces in between {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4.2K bytes - Click Count (0) -
docs/en/docs/tutorial/cors.md
## Origin { #origin } An origin is the combination of protocol (`http`, `https`), domain (`myapp.com`, `localhost`, `localhost.tiangolo.com`), and port (`80`, `443`, `8080`). So, all these are different origins: * `http://localhost` * `https://localhost` * `http://localhost:8080` Even if they are all in `localhost`, they use different protocols or ports, so, they are different "origins". ## Steps { #steps }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 5.5K bytes - Click Count (0) -
tests/test_openapi_servers.py
from inline_snapshot import snapshot app = FastAPI( servers=[ {"url": "/", "description": "Default, relative server"}, { "url": "http://staging.localhost.tiangolo.com:8000", "description": "Staging but actually localhost still", }, {"url": "https://prod.example.com"}, ] ) @app.get("/foo") def foo(): return {"message": "Hello World"}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 1.7K bytes - Click Count (0) -
tests/tests_test.go
var DB *gorm.DB var ( mysqlDSN = "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True&loc=Local" postgresDSN = "user=gorm password=gorm dbname=gorm host=localhost port=9920 sslmode=disable TimeZone=Asia/Shanghai" gaussdbDSN = "user=gaussdb password=Gaussdb@123 dbname=gorm host=localhost port=9950 sslmode=disable TimeZone=Asia/Shanghai" sqlserverDSN = "sqlserver://sa:LoremIpsum86@localhost:9930?database=master"
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 3.7K bytes - Click Count (0) -
docs/en/docs/advanced/wsgi.md
And the rest will be handled by **FastAPI**. If you run it and go to <a href="http://localhost:8000/v1/" class="external-link" target="_blank">http://localhost:8000/v1/</a> you will see the response from Flask: ```txt Hello, World from Flask! ``` And if you go to <a href="http://localhost:8000/v2" class="external-link" target="_blank">http://localhost:8000/v2</a> you will see the response from FastAPI: ```JSON {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.2K bytes - Click Count (0)