<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 10 Feb 2017, at 7:07, Denis Makogon wrote:</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">Greetings.<br>
<br>
I've been developing Swift middleware that depends on specific HTTP headers<br>
and figured out that there's only one way to specify them on client side -<br>
only in programmatically i can add HTTP headers to each Swift HTTP API<br>
method (CLI and dashboard are not supporting HTTP headers configuration,<br>
except by default enabled cases like "copy" middleware because swiftclient<br>
defines in as separate API method).<br>
<br>
My point here is, as developer, i don't have OpenStack-aligned way to<br>
examine HTTP headers-dependent middleware without hacking into both<br>
swiftclient and dashboard what makes me fall back to cURL that brings a lot<br>
overhead while working with Swift.<br>
<br>
So, is there any interest in having such thing in swiftclient and,<br>
subsequently, in dashboard?<br>
If yes, let me know (it shouldn't be that complicated because at<br>
swiftclient python API level we already capable to send HTTP headers).</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">Good news! python-swiftclient already supports sending arbitrary headers via the CLI with the -H/--header (in addition to the SDK, as you mentioned). IIRC this is <em>not</em> yet supported in the combined openstack client, but I think it would be a great addition.</p>
<p dir="auto">--John</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">Kind regards,<br>
Denis Makogon<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" style="color:#777">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></p>
</blockquote></div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>