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