Categorygithub.com/avoidik/pacproxy
modulepackage
1.0.1
Repository: https://github.com/avoidik/pacproxy.git
Documentation: pkg.go.dev

# README

pacproxy

Build Status

A no-frills local HTTP proxy server powered by a proxy auto-config (PAC) file. Especially handy when you are working in an environment with many different proxy servers and your applications don't support proxy auto-configuration.

$ ./pacproxy -h
Usage of ./bin/pacproxy:
  -c string
    	PAC file to use
  -l string
    	Interface and port to listen on (default "127.0.0.1:8080")
  -v	send verbose output to STDERR
pacproxy &
export http_proxy="127.0.0.1:8080"
export https_proxy="127.0.0.1:8080"
curl -I "http://www.example.com"

License

Copyright 2015 William Bailey

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

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.

# Functions

Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
MustAsset is like Asset but panics when Asset would return an error.
No description provided by the author
NewPac create a new pac instance.
No description provided by the author
No description provided by the author
No description provided by the author
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

Pac is the main proxy auto configuration engine.
No description provided by the author
No description provided by the author
ProxyHTTPHandler provides the main http handler for running the proxy.