[openstack-dev] [Swift][swiftclient][horizon] Improve UX by enabling HTTP headers configuration in UI and CLI

John Dickinson me at not.mn
Fri Feb 10 15:32:54 UTC 2017

On 10 Feb 2017, at 7:07, Denis Makogon wrote:

> Greetings.
> I've been developing Swift middleware that depends on specific HTTP headers
> and figured out that there's only one way to specify them on client side -
> only in programmatically i can add HTTP headers to each Swift HTTP API
> method (CLI and dashboard are not supporting HTTP headers configuration,
> except by default enabled cases like "copy" middleware because swiftclient
> defines in as separate API method).
> My point here is, as developer, i don't have OpenStack-aligned way to
> examine HTTP headers-dependent middleware without hacking into both
> swiftclient and dashboard what makes me fall back to cURL that brings a lot
> overhead while working with Swift.
> So, is there any interest in having such thing in swiftclient and,
> subsequently, in dashboard?
> If yes, let me know (it shouldn't be that complicated because at
> swiftclient python API level we already capable to send HTTP headers).

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 *not* yet supported in the combined openstack client, but I think it would be a great addition.


> Kind regards,
> Denis Makogon
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170210/c997fc51/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170210/c997fc51/attachment.pgp>

More information about the OpenStack-dev mailing list