Licensing: Changes for ASF license compliance (#1528)
* Update/add license banners * Strip "Author: " comments * Initialize NOTICE
This commit is contained in:
committed by
GitHub
parent
c48ca9e990
commit
2e202e5c8d
@@ -0,0 +1,17 @@
|
|||||||
|
Apache ngx_pagespeed
|
||||||
|
|
||||||
|
Copyright 2018 The Apache Software Foundation
|
||||||
|
|
||||||
|
This product includes software developed at
|
||||||
|
- The Apache Software Foundation (http://www.apache.org/).
|
||||||
|
- Google Inc.
|
||||||
|
|
||||||
|
Codebase originally donated by Google Inc:
|
||||||
|
|
||||||
|
Copyright (C) 2010-2017 Google Inc.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
+18
@@ -1,6 +1,24 @@
|
|||||||
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
# distributed with this work for additional information
|
||||||
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
|
# to you under the Apache License, Version 2.0 (the
|
||||||
|
# "License"); you may not use this file except in compliance
|
||||||
|
# with the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
# Since nginx build system doesn't normally do C++, there is no CXXFLAGS for us
|
# Since nginx build system doesn't normally do C++, there is no CXXFLAGS for us
|
||||||
# to touch, and compilers are understandably unhappy with --std=c++11 on C
|
# to touch, and compilers are understandably unhappy with --std=c++11 on C
|
||||||
# files. Hence, we hack the makefile to add it for just our sources.
|
# files. Hence, we hack the makefile to add it for just our sources.
|
||||||
|
|
||||||
for ps_src_file in $PS_NGX_SRCS; do
|
for ps_src_file in $PS_NGX_SRCS; do
|
||||||
ps_obj_file="$NGX_OBJS/addon/src/`basename $ps_src_file .cc`.o"
|
ps_obj_file="$NGX_OBJS/addon/src/`basename $ps_src_file .cc`.o"
|
||||||
echo "$ps_obj_file : CFLAGS += --std=c++11" >> $NGX_MAKEFILE
|
echo "$ps_obj_file : CFLAGS += --std=c++11" >> $NGX_MAKEFILE
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# Copyright 2016 Google Inc.
|
# or more contributor license agreements. See the NOTICE file
|
||||||
#
|
# distributed with this work for additional information
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# you may not use this file except in compliance with the License.
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# You may obtain a copy of the License at
|
# "License"); you may not use this file except in compliance
|
||||||
#
|
# with the License. You may obtain a copy of the License at
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
#
|
||||||
#
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
#
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# software distributed under the License is distributed on an
|
||||||
# See the License for the specific language governing permissions and
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# limitations under the License.
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "
|
echo "
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# Copyright 2016 Google Inc.
|
# or more contributor license agreements. See the NOTICE file
|
||||||
#
|
# distributed with this work for additional information
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# you may not use this file except in compliance with the License.
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# You may obtain a copy of the License at
|
# "License"); you may not use this file except in compliance
|
||||||
#
|
# with the License. You may obtain a copy of the License at
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
#
|
||||||
#
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
#
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# software distributed under the License is distributed on an
|
||||||
# See the License for the specific language governing permissions and
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# limitations under the License.
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|||||||
@@ -1,19 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# Copyright 2013 Google Inc.
|
# or more contributor license agreements. See the NOTICE file
|
||||||
#
|
# distributed with this work for additional information
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# you may not use this file except in compliance with the License.
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# You may obtain a copy of the License at
|
# "License"); you may not use this file except in compliance
|
||||||
#
|
# with the License. You may obtain a copy of the License at
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
#
|
||||||
#
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
#
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# software distributed under the License is distributed on an
|
||||||
# See the License for the specific language governing permissions and
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# limitations under the License.
|
# KIND, either express or implied. See the License for the
|
||||||
#
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
# Converts pagespeed_libraries.conf from Apache-format to Nginx-format,
|
# Converts pagespeed_libraries.conf from Apache-format to Nginx-format,
|
||||||
# supporting the canonicalize_javascript_libraries filter.
|
# supporting the canonicalize_javascript_libraries filter.
|
||||||
# Inspired by https://github.com/apache/incubator-pagespeed-ngx/issues/532
|
# Inspired by https://github.com/apache/incubator-pagespeed-ngx/issues/532
|
||||||
@@ -23,9 +25,6 @@
|
|||||||
#
|
#
|
||||||
# Then have nginx include that configuration file and enable the filter
|
# Then have nginx include that configuration file and enable the filter
|
||||||
# canonicalize_javascript_libraries.
|
# canonicalize_javascript_libraries.
|
||||||
#
|
|
||||||
# Author: vid@zippykid.com (Vid Luther)
|
|
||||||
# jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
URL="https://github.com/apache/incubator-pagespeed-mod/raw/master/"
|
URL="https://github.com/apache/incubator-pagespeed-mod/raw/master/"
|
||||||
URL+="net/instaweb/genfiles/conf/pagespeed_libraries.conf"
|
URL+="net/instaweb/genfiles/conf/pagespeed_libraries.conf"
|
||||||
|
|||||||
+16
-14
@@ -1,18 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# Copyright 2016 Google Inc.
|
# or more contributor license agreements. See the NOTICE file
|
||||||
#
|
# distributed with this work for additional information
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# you may not use this file except in compliance with the License.
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# You may obtain a copy of the License at
|
# "License"); you may not use this file except in compliance
|
||||||
#
|
# with the License. You may obtain a copy of the License at
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
#
|
||||||
#
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
#
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# software distributed under the License is distributed on an
|
||||||
# See the License for the specific language governing permissions and
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# limitations under the License.
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
# Usage: scripts/rebuild.sh
|
# Usage: scripts/rebuild.sh
|
||||||
#
|
#
|
||||||
|
|||||||
+20
-17
@@ -1,20 +1,23 @@
|
|||||||
// Copyright 2010 Google Inc.
|
/*
|
||||||
//
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
* or more contributor license agreements. See the NOTICE file
|
||||||
// you may not use this file except in compliance with the License.
|
* distributed with this work for additional information
|
||||||
// You may obtain a copy of the License at
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
//
|
* to you under the Apache License, Version 2.0 (the
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
* "License"); you may not use this file except in compliance
|
||||||
//
|
* with the License. You may obtain a copy of the License at
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
*
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
*
|
||||||
// See the License for the specific language governing permissions and
|
* Unless required by applicable law or agreed to in writing,
|
||||||
// limitations under the License.
|
* software distributed under the License is distributed on an
|
||||||
//
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
// Author: jmarantz@google.com (Joshua Marantz)
|
* KIND, either express or implied. See the License for the
|
||||||
// Author: sligocki@google.com (Shawn Ligocki)
|
* specific language governing permissions and limitations
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// TODO(jefftk): share more of this code with apache's log_message_handler
|
// TODO(jefftk): share more of this code with apache's log_message_handler
|
||||||
|
|
||||||
|
|||||||
+20
-17
@@ -1,20 +1,23 @@
|
|||||||
// Copyright 2010 Google Inc.
|
/*
|
||||||
//
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
* or more contributor license agreements. See the NOTICE file
|
||||||
// you may not use this file except in compliance with the License.
|
* distributed with this work for additional information
|
||||||
// You may obtain a copy of the License at
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
//
|
* to you under the Apache License, Version 2.0 (the
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
* "License"); you may not use this file except in compliance
|
||||||
//
|
* with the License. You may obtain a copy of the License at
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
*
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
*
|
||||||
// See the License for the specific language governing permissions and
|
* Unless required by applicable law or agreed to in writing,
|
||||||
// limitations under the License.
|
* software distributed under the License is distributed on an
|
||||||
//
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
// Author: jmarantz@google.com (Joshua Marantz)
|
* KIND, either express or implied. See the License for the
|
||||||
// Author: sligocki@google.com (Shawn Ligocki)
|
* specific language governing permissions and limitations
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef LOG_MESSAGE_HANDLER_H_
|
#ifndef LOG_MESSAGE_HANDLER_H_
|
||||||
#define LOG_MESSAGE_HANDLER_H_
|
#define LOG_MESSAGE_HANDLER_H_
|
||||||
|
|||||||
+17
-15
@@ -1,21 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
*
|
* KIND, either express or implied. See the License for the
|
||||||
* Author: jefftk@google.com (Jeff Kaufman)
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "ngx_pagespeed.h" // Must come first, see comments in CollectHeaders.
|
#include "ngx_pagespeed.h" // Must come first, see comments in CollectHeaders.
|
||||||
|
|
||||||
#include <unistd.h> //for usleep
|
#include <unistd.h> //for usleep
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
//
|
//
|
||||||
// Collects output from pagespeed and buffers it until nginx asks for it.
|
// Collects output from pagespeed and buffers it until nginx asks for it.
|
||||||
// Notifies nginx via NgxEventConnection to call ReadCallback() when
|
// Notifies nginx via NgxEventConnection to call ReadCallback() when
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
#include "ngx_caching_headers.h"
|
#include "ngx_caching_headers.h"
|
||||||
#include "ngx_list_iterator.h"
|
#include "ngx_list_iterator.h"
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
#ifndef NGX_CACHING_HEADERS_H_
|
#ifndef NGX_CACHING_HEADERS_H_
|
||||||
#define NGX_CACHING_HEADERS_H_
|
#define NGX_CACHING_HEADERS_H_
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2014 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: oschaaf@we-amp.com (Otto van der Schaaf)
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2014 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: oschaaf@we-amp.com (Otto van der Schaaf)
|
|
||||||
//
|
//
|
||||||
// NgxEventConnection implements a means to send events from other threads to
|
// NgxEventConnection implements a means to send events from other threads to
|
||||||
// nginx's event loop, and is implemented by a named pipe under the hood.
|
// nginx's event loop, and is implemented by a named pipe under the hood.
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: x.dinic@gmail.com (Junmin Xiong)
|
|
||||||
//
|
//
|
||||||
// - The fetch is started by the main thread.
|
// - The fetch is started by the main thread.
|
||||||
// - Resolver event was hooked when a NgxFetch starting. It could
|
// - Resolver event was hooked when a NgxFetch starting. It could
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: x.dinic@gmail.com (Junmin Xiong)
|
|
||||||
//
|
//
|
||||||
// PageSpeed needs some way to talk to the internet and request resources. For
|
// PageSpeed needs some way to talk to the internet and request resources. For
|
||||||
// example, if it's optimizing www.example.com/index.html and it sees html with
|
// example, if it's optimizing www.example.com/index.html and it sees html with
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2014 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: kspoelstra@we-amp.com (Kees Spoelstra)
|
|
||||||
|
|
||||||
#include "ngx_gzip_setter.h"
|
#include "ngx_gzip_setter.h"
|
||||||
|
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2014 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: kspoelstra@we-amp.com (Kees Spoelstra)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NgxGZipSetter sets up gzip for pagespeed
|
* NgxGZipSetter sets up gzip for pagespeed
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
#include "ngx_list_iterator.h"
|
#include "ngx_list_iterator.h"
|
||||||
|
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
//
|
//
|
||||||
// Simplifies iteration over nginx lists.
|
// Simplifies iteration over nginx lists.
|
||||||
//
|
//
|
||||||
|
|||||||
+20
-14
@@ -1,18 +1,24 @@
|
|||||||
// Copyright 2013 Google Inc.
|
/*
|
||||||
//
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
* or more contributor license agreements. See the NOTICE file
|
||||||
// you may not use this file except in compliance with the License.
|
* distributed with this work for additional information
|
||||||
// You may obtain a copy of the License at
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
//
|
* to you under the Apache License, Version 2.0 (the
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
* "License"); you may not use this file except in compliance
|
||||||
//
|
* with the License. You may obtain a copy of the License at
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
*
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
*
|
||||||
// See the License for the specific language governing permissions and
|
* Unless required by applicable law or agreed to in writing,
|
||||||
// limitations under the License.
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Author: oschaaf@gmail.com (Otto van der Schaaf)
|
|
||||||
|
|
||||||
#include "ngx_message_handler.h"
|
#include "ngx_message_handler.h"
|
||||||
|
|
||||||
|
|||||||
+20
-14
@@ -1,18 +1,24 @@
|
|||||||
// Copyright 2013 Google Inc.
|
/*
|
||||||
//
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
* or more contributor license agreements. See the NOTICE file
|
||||||
// you may not use this file except in compliance with the License.
|
* distributed with this work for additional information
|
||||||
// You may obtain a copy of the License at
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
//
|
* to you under the Apache License, Version 2.0 (the
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
* "License"); you may not use this file except in compliance
|
||||||
//
|
* with the License. You may obtain a copy of the License at
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
*
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
*
|
||||||
// See the License for the specific language governing permissions and
|
* Unless required by applicable law or agreed to in writing,
|
||||||
// limitations under the License.
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Author: oschaaf@gmail.com (Otto van der Schaaf)
|
|
||||||
|
|
||||||
#ifndef NGX_MESSAGE_HANDLER_H_
|
#ifndef NGX_MESSAGE_HANDLER_H_
|
||||||
#define NGX_MESSAGE_HANDLER_H_
|
#define NGX_MESSAGE_HANDLER_H_
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Usage:
|
* Usage:
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
#ifndef NGX_PAGESPEED_H_
|
#ifndef NGX_PAGESPEED_H_
|
||||||
#define NGX_PAGESPEED_H_
|
#define NGX_PAGESPEED_H_
|
||||||
|
|||||||
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
#include "ngx_rewrite_driver_factory.h"
|
#include "ngx_rewrite_driver_factory.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
#ifndef NGX_REWRITE_DRIVER_FACTORY_H_
|
#ifndef NGX_REWRITE_DRIVER_FACTORY_H_
|
||||||
#define NGX_REWRITE_DRIVER_FACTORY_H_
|
#define NGX_REWRITE_DRIVER_FACTORY_H_
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
#include "ngx_rewrite_options.h"
|
#include "ngx_rewrite_options.h"
|
||||||
|
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
// Manage configuration for pagespeed. Compare to ApacheConfig.
|
// Manage configuration for pagespeed. Compare to ApacheConfig.
|
||||||
|
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
#include "ngx_server_context.h"
|
#include "ngx_server_context.h"
|
||||||
|
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: jefftk@google.com (Jeff Kaufman)
|
|
||||||
|
|
||||||
// Manage pagespeed state across requests. Compare to ApacheResourceManager.
|
// Manage pagespeed state across requests. Compare to ApacheResourceManager.
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: x.dinic@gmail.com (Junmin Xiong)
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <ngx_http.h>
|
#include <ngx_http.h>
|
||||||
|
|||||||
+17
-14
@@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012 Google Inc.
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
*
|
* or more contributor license agreements. See the NOTICE file
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* distributed with this work for additional information
|
||||||
* you may not use this file except in compliance with the License.
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* You may obtain a copy of the License at
|
* to you under the Apache License, Version 2.0 (the
|
||||||
*
|
* "License"); you may not use this file except in compliance
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* with the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
*
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* Unless required by applicable law or agreed to in writing,
|
||||||
* See the License for the specific language governing permissions and
|
* software distributed under the License is distributed on an
|
||||||
* limitations under the License.
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Author: x.dinic@gmail.com(Junmin Xiong)
|
|
||||||
//
|
//
|
||||||
// Fetch the resources asynchronously in Nginx. The fetcher is called in
|
// Fetch the resources asynchronously in Nginx. The fetcher is called in
|
||||||
// the rewrite thread.
|
// the rewrite thread.
|
||||||
|
|||||||
+17
-18
@@ -1,22 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# Copyright 2012 Google Inc.
|
# or more contributor license agreements. See the NOTICE file
|
||||||
#
|
# distributed with this work for additional information
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# you may not use this file except in compliance with the License.
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# You may obtain a copy of the License at
|
# "License"); you may not use this file except in compliance
|
||||||
#
|
# with the License. You may obtain a copy of the License at
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
#
|
||||||
#
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
#
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# software distributed under the License is distributed on an
|
||||||
# See the License for the specific language governing permissions and
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# limitations under the License.
|
# KIND, either express or implied. See the License for the
|
||||||
#
|
# specific language governing permissions and limitations
|
||||||
# Author: jefftk@google.com (Jeff Kaufman)
|
# under the License.
|
||||||
#
|
|
||||||
#
|
|
||||||
# Runs pagespeed's generic system test and nginx-specific system tests. Not
|
# Runs pagespeed's generic system test and nginx-specific system tests. Not
|
||||||
# intended to be run on it's own; use run_tests.sh instead.
|
# intended to be run on it's own; use run_tests.sh instead.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,3 +1,20 @@
|
|||||||
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
# distributed with this work for additional information
|
||||||
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
|
# to you under the Apache License, Version 2.0 (the
|
||||||
|
# "License"); you may not use this file except in compliance
|
||||||
|
# with the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
# nginx_system_test.sh makes a few substitutions to pagespeed_test.conf.template
|
# nginx_system_test.sh makes a few substitutions to pagespeed_test.conf.template
|
||||||
# file to generate @@TEST_TMP@@/pagespeed_test.conf
|
# file to generate @@TEST_TMP@@/pagespeed_test.conf
|
||||||
|
|
||||||
|
|||||||
+17
-17
@@ -1,21 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# Copyright 2013 Google Inc.
|
# or more contributor license agreements. See the NOTICE file
|
||||||
#
|
# distributed with this work for additional information
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# you may not use this file except in compliance with the License.
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# You may obtain a copy of the License at
|
# "License"); you may not use this file except in compliance
|
||||||
#
|
# with the License. You may obtain a copy of the License at
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
#
|
||||||
#
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
#
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# software distributed under the License is distributed on an
|
||||||
# See the License for the specific language governing permissions and
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# limitations under the License.
|
# KIND, either express or implied. See the License for the
|
||||||
#
|
# specific language governing permissions and limitations
|
||||||
# Author: jefftk@google.com (Jeff Kaufman)
|
# under the License.
|
||||||
#
|
|
||||||
# Runs ngx_pagespeed system tests.
|
# Runs ngx_pagespeed system tests.
|
||||||
#
|
#
|
||||||
# Exits with status 0 if all tests pass.
|
# Exits with status 0 if all tests pass.
|
||||||
|
|||||||
+16
-16
@@ -1,19 +1,19 @@
|
|||||||
# Copyright 2013 Google Inc.
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
#
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# distributed with this work for additional information
|
||||||
# you may not use this file except in compliance with the License.
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
# You may obtain a copy of the License at
|
# to you under the Apache License, Version 2.0 (the
|
||||||
#
|
# "License"); you may not use this file except in compliance
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
#
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# See the License for the specific language governing permissions and
|
# software distributed under the License is distributed on an
|
||||||
# limitations under the License.
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
#
|
# KIND, either express or implied. See the License for the
|
||||||
# Author: oschaaf@we-amp.com (Otto van der Schaaf)
|
# specific language governing permissions and limitations
|
||||||
|
# under the License
|
||||||
|
|
||||||
# The first few suppressions can be found in other modules
|
# The first few suppressions can be found in other modules
|
||||||
# and easily found when searched for, and seem false positives.
|
# and easily found when searched for, and seem false positives.
|
||||||
|
|||||||
Reference in New Issue
Block a user