Skip to content

limited request creation via headers method #170

Description

@Cosm-gedenke

Is your feature request related to a problem? Please describe.
I'm trying to utilize proxelar proxy's for a project of mine, so far it has been incredible however,
when trying to build a request into a fully entirely editable request, I need to grab every value of the headerMap

/// Returns the request headers.
    pub const fn headers(&self) -> &HeaderMap {
        &self.headers
    }

parameter, however all the options I have are:

pub fn get<K>(&self, key: K) -> Option<&T>
    where
        K: AsHeaderName,
    {
        self.get2(&key)
    }

which doesn't worked due to the arbitrary nature of possible fields values, and simply holding all of the possible headers
in the HTTP RFC is bound to create issues with new parameters, making it very unmantainable in my scenario
and there is also this

pub fn iter(&self) -> Iter<'_, T> {
        Iter {
            map: self,
            entry: 0,
            cursor: self.entries.first().map(|_| Cursor::Head),
        }
    }

which has an arbitrary order, which is also not good for representing and handling a request entirely

Describe the solution you'd like
I wish to preserve the order of the header in the requests

Image

somethign like this on burpsuite, as an example.

Describe alternatives you've considered
an alternative representation of a proxied request so it is easier to handle

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions