# File lib/rev/http_client.rb, line 240
240:     def send_request_header
241:       query   = @options[:query]
242:       head    = @options[:head] ? munge_header_keys(@options[:head]) : {}
243:       cookies = @options[:cookies]
244:       body    = @options[:body]
245: 
246:       # Set the Host header if it hasn't been specified already
247:       head['host'] ||= encode_host
248: 
249:       # Set the Content-Length if it hasn't been specified already and a body was given
250:       head['content-length'] ||= body ? body.length : 0
251: 
252:       # Set the User-Agent if it hasn't been specified
253:       head['user-agent'] ||= "Rev #{Rev::VERSION}"
254: 
255:       # Default to Connection: close
256:       head['connection'] ||= 'close'
257: 
258:       # Build the request
259:       request_header = encode_request(@method, @uri, query)
260:       request_header << encode_headers(head)
261:       request_header << encode_cookies(cookies) if cookies
262:       request_header << CRLF
263: 
264:       write request_header
265:     end