mod_echo.c revision 185aa71728867671e105178b4c66fbc22b65ae26
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher/* Licensed to the Apache Software Foundation (ASF) under one or more
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * contributor license agreements. See the NOTICE file distributed with
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * this work for additional information regarding copyright ownership.
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * The ASF licenses this file to You under the Apache License, Version 2.0
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * (the "License"); you may not use this file except in compliance with
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * the License. You may obtain a copy of the License at
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * http://www.apache.org/licenses/LICENSE-2.0
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * Unless required by applicable law or agreed to in writing, software
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * distributed under the License is distributed on an "AS IS" BASIS,
5ef295d1cf410ceaa92c03a7843df8a36409f465Stephen Gallagher * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
78d603a2e953af2443efca54451cdd77c7a55707Jakub Hrozek * See the License for the specific language governing permissions and
78d603a2e953af2443efca54451cdd77c7a55707Jakub Hrozek * limitations under the License.
c3869cac3143e3084e95521d76fe7345b3c8d00fJakub Hrozektypedef struct {
c3869cac3143e3084e95521d76fe7345b3c8d00fJakub Hrozekstatic void *create_echo_server_config(apr_pool_t *p, server_rec *s)
return pConfig;
&echo_module);
return NULL;
apr_bucket *b;
if (bufflen--)
return APR_EGENERAL;
return APR_EGENERAL;
const char *pos;
const char *str;
!= APR_SUCCESS)
return rv;
b = APR_BUCKET_NEXT(b);
return APR_SUCCESS;
if (!ap_extended_status)
return old_status;
if (last_echoed) {
return old_status;
apr_bucket *b;
&echo_module);
return DECLINED;
c->peer_ip);
c->peer_ip);
if (!csd) {
c->peer_ip);
return OK;
{ NULL }