Sha256: d86cc515432512b555d6b643bae9938442f852b70667ca13585f91a46b8c40a4
Contents?: true
Size: 933 Bytes
Versions: 1
Compression:
Stored size: 933 Bytes
Contents
:call-seq: make_headers(user_headers) -> Hash<String, String> Generate headers for use by a request. Header keys will be stringified using `#stringify_headers` to normalize them as capitalized strings. The final headers consist of: - default headers from #default_headers - user_headers provided here - headers from the payload object (e.g. Content-Type, Content-Lenth) - cookie headers from #make_cookie_header BUG: stringify_headers does not alter the capitalization of headers that are passed as strings, it only normalizes those passed as symbols. This behavior will probably remain for a while for compatibility, but it means that the warnings that attempt to detect accidental header overrides may not always work. https://github.com/rest-man/rest-man/issues/599 [Parameters:] - user_headers (Hash) -- User-provided headers to include [Returns] - (Hash<String, String>) -- A hash of HTTP headers => values
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest-man-1.1.0 | _doc/lib/restman/request/make_headers.rdoc |