昨日内容回顾 1.Flask路由 1.endpoint="user" # 反向url地址 2.url_address = url_for("user") 3.methods = ["GET","POST"] # 允许请求进入视图函数的方式 4.redirect_to # 在进入视图函数之前重定向 5 ...
分类:
Web程序 时间:
2019-03-03 22:35:34
阅读次数:
316
1. @app.route() 装饰器中的参数 methods : 当前 url 地址,允许访问的请求方式 endpoint : 反向url地址,默认为视图函数名 (url_for) defaults : 视图函数的参数默认值{"nid":1} strict_slashes : url地址结尾符"/ ...
分类:
其他好文 时间:
2019-02-26 21:02:55
阅读次数:
232
一、 Keystone 概述 管理用户及其权限 维护OpenStack Services的Endpoint Authentication(认证)和 Authorization(授权) 1、验证用户 验证用户的最简单的方法是请求凭据(登录+密码,登录+密钥等),并通过某些数据库进行检查。 2、认证包括 ...
分类:
其他好文 时间:
2019-02-05 18:18:53
阅读次数:
233
etcd默认的空间配额限制为2G,超出空间配额限制就会影响服务,所以需要定期清理 以下是etcd磁盘清理的步骤: 1. 显示空间配额: ETCDCTL_API=3 etcdctl --endpoints=$ip:$port --write-out=table endpoint status 2.查看 ...
分类:
其他好文 时间:
2019-01-28 19:13:44
阅读次数:
202
原文:ASP.NET Core 2.2 : 十七.Action的执行(Endpoint.RequestDelegate后面的故事) 上一章介绍了经过路由的处理,一个请求找到了具体处理这个请求的EndPoint,并最终执行它的RequestDelegate方法来处理这个Httpcontext。本章继续... ...
分类:
Web程序 时间:
2019-01-25 20:01:33
阅读次数:
146
上一章介绍了经过路由的处理,一个请求找到了具体处理这个请求的EndPoint,并最终执行它的RequestDelegate方法来处理这个Httpcontext。本章继续这个处理进程,按照惯例,依然通过几幅图来聊一聊这个RequestDelegate之后的故事。在此就避免不了的聊到各种Filter,它 ...
分类:
Web程序 时间:
2019-01-25 13:01:04
阅读次数:
106
public class RestClient { public string EndPoint { get; set; } //请求的url地址 public HttpVerb Method { get; set; } //请求的方法 public string ContentType { get... ...
分类:
其他好文 时间:
2019-01-24 20:08:04
阅读次数:
135
Q: Why does smart protection not work? A: Please make sure the checkbox "Eye Protection" is on, app activated is not in the exception list and the cur ...
分类:
其他好文 时间:
2019-01-21 22:52:47
阅读次数:
226
如果你被这ABC输入法弄得很是不开心。那就看看吧!!!亲测一定有效。 mac 关闭系统完整性保护 SIP(System Integrity Protection) 1. 重启系统 2. 按住 command+R 键不放进入mac恢复模式 3. 左上角 实用工具 点击 终端 4. 输入命令 csrut ...
分类:
系统相关 时间:
2019-01-20 20:52:01
阅读次数:
296
一、安装插件 二、配置 在linux上执行命令 去掉jenkins的 CSRF Protection设置 找到触发构建的项目,修改触发器 在gitlab的项目中,设置webhook的url,点击test,返回201代码成功 ...
分类:
其他好文 时间:
2019-01-19 12:19:22
阅读次数:
226