[英]How do I access the user agent in Google Cloud Endpoint APIs?
I have an api endpoint defined as follows 我有一个api端点,定义如下
@Api (name = "auth", version = "1")
public class AuthenticationEndpoint {
@ApiMethod
public AuthResult Register (@Named ("email") String email, @Named ("password") String pass) {
// TODO: do something with the user agent here
}
}
Is there any way to access the user agent here in my Register method? 在我的Register方法中,有什么方法可以访问用户代理?
Thanks 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.