diff --git a/README.md b/README.md index 5087400..ea345be 100644 --- a/README.md +++ b/README.md @@ -5,35 +5,35 @@ ## Usage - Usage: + Usage: - Client mode - httpcat -client [options] http://uri-to-send-request-to.com + Client mode + httpcat -client [options] http://uri-to-send-request-to.com - Currently only supports GET requests. + Currently only supports GET requests. - Server mode - httpcat -server [options] + Server mode + httpcat -server [options] - Options (either mode) - -entire or -e : Display entire request/response instead of just the body. - -verbose or -v : Be verbose. + Options (either mode) + -entire or -e : Display entire request/response instead of just the body. + -verbose or -v : Be verbose. - Options (client mode only) - -accept or -a [accept string] : Adds 'Accept' header to request. + Options (client mode only) + -accept or -a [accept string] : Adds 'Accept' header to request. - Options (server mode only) - -body or -b [body message] : Body to respond with. Response code will default to 200. - -port or -p [port] : Port to listen on. - -response or -r [response code] : Status code to respond with. Defaults to 204. - -cors or -c : Enable Cross Origin Resource Sharing support. - -separator or -s [separator string] : Use the provided separator to separate messages. + Options (server mode only) + -body or -b [body message] : Body to respond with. Response code will default to 200. + -port or -p [port] : Port to listen on. + -response or -r [response code] : Status code to respond with. Defaults to 204. + -cors or -c : Enable Cross Origin Resource Sharing support. + -separator or -s [separator string] : Use the provided separator to separate messages. ## Building ``` cd src -go build +go build -o ../httpcat ``` ### Cross Compiling