/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/api/api_request.go
17 строк
456 B
Michael Mayer
Pkg: Move /service/http/... to /http/... and add package /http/dns
19 окт 2025, 22:08
19 окт 2025, 22:08
a921f82
Код
Авторство
О чём код?
package api import ( "github.com/gin-gonic/gin" "github.com/photoprism/photoprism/pkg/http/header" ) // ClientIP returns the client IP address from the request context or a placeholder if it is unknown. func ClientIP(c *gin.Context) (ip string) { return header.ClientIP(c) } // UserAgent returns the user agent from the request context or an empty string if it is unknown. func UserAgent(c *gin.Context) string { return header.ClientUserAgent(c) }