Skip to content

Add remaining interesting bits for the SupportDesk HTTP API - #1929

Open
redstrate wants to merge 1 commit into
aers:mainfrom
redstrate:work/redstrate/http-api
Open

Add remaining interesting bits for the SupportDesk HTTP API#1929
redstrate wants to merge 1 commit into
aers:mainfrom
redstrate:work/redstrate/http-api

Conversation

@redstrate

Copy link
Copy Markdown
Contributor

This will enable us to finally introspect the data for these requests! The most important bit was figuring out the stages and then making up a sensible delegate to hook into.

This will enable us to finally introspect the data for these requests!
The most important bit was figuring out the stages and then making up a
sensible delegate to hook into.
/// <param name="dataLength">Length of the data buffer.</param>
/// <returns>The new HTTPRequest handle if it could be successfully created.</returns>
[VirtualFunction(4)]
public partial HttpRequest* MakeRequest(byte* url, byte* verb, byte* data, ulong dataLength);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little unsure about this API, because I'm not really sure what kind of string it is. On the plugin side, I can do Marshal.PtrToStringAnsi on this and get a valid string, so is it a CStringPointer? And then data is technically always a valid string too as far as I've seen, maybe I should do the same there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant