Documentation ¶
Overview ¶
* (c) 2016-2017 Adobe. All rights reserved. * This file is licensed 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 REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License.
* (c) 2016-2017 Adobe. All rights reserved. * This file is licensed 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 REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License.
* (c) 2016-2017 Adobe. All rights reserved. * This file is licensed 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 REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License.
* (c) 2016-2017 Adobe. All rights reserved. * This file is licensed 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 REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License.
* (c) 2016-2017 Adobe. All rights reserved. * This file is licensed 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 REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License.
Index ¶
- func Context(route string, inputLog log15.Logger, hdl Handle) httprouter.Handle
- func GetParams(ctx context.Context) httprouter.Params
- func GetRequestLog(ctx context.Context) log15.Logger
- func WithParams(ctx context.Context, value httprouter.Params) context.Context
- func WithRequestLog(ctx context.Context, value log15.Logger) context.Context
- type CtxResponseWriter
- type Handle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestLog ¶
func WithParams ¶
Types ¶
type CtxResponseWriter ¶
type CtxResponseWriter struct {
// contains filtered or unexported fields
}
CtxResponseWriter is a context-aware http.ResponseWriter. It prevents calls to the real http.ResponseWriter that may already be closed due to a context timeout
func (CtxResponseWriter) Header ¶
func (recv CtxResponseWriter) Header() http.Header
func (CtxResponseWriter) WriteHeader ¶
func (recv CtxResponseWriter) WriteHeader(i int)