soft

soft

JAVA 工具类 IPUtils

/**  * Copyright (c) 2016-2019 ants All rights reserved.  *  *   * 版权所有,侵权必究!  */ package io.ants.common.utils; import com.alibaba.druid.util.StringUtils;

NGINX 模块开发 args 中是否包含KEY-VALUE检测

static ngx_uint_t get_exist_target_in_uri(ngx_http_request_t* r) {     ngx_log_error(NGX_LOG_DEBUG, r->connection->log, 0, "[%s %d]%Z", __FUNCTION__, __LINE__); &

NGINX 模块开发 cooies 是否存在检测

static ngx_uint_t get_exist_target_in_cookies(ngx_http_request_t* r, char* cookie_value) {     //ngx_log_error(NGX_LOG_DEBUG, r->connection->log, 0, "{%s}[%s %d]%Z"

NGINX 模块开发 ip hash 方式

static ngx_uint_t get_ip_addr_crc(ngx_connection_t* c, int algorithm) {     ngx_int_t ip_type = c->sockaddr->sa_family;// r->connection->sockaddr->sa_family; &nb

nginx void(*exit_master)(ngx_cycle_t *cycle) free_resource

static void free_resource(ngx_cycle_t* cycle) { ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "[%s %d]%Z", __FUNCTION__, __LINE__); //return; /* 1 get ngx_http_core_main_

java 访问HTTP(S)

public static String okHttpPost(String url,String paramJsonString){     try{         OkHttpClient client = new OkHttpClient().newBuilder().buil
<< 1 >>
联系我 331434376    15629529961