Skip to content

Supporting POST requests and request headers - #1

Merged
bghgary merged 13 commits into
BabylonJS:mainfrom
lmaskati:lmaskati/test
Mar 7, 2023
Merged

Supporting POST requests and request headers#1
bghgary merged 13 commits into
BabylonJS:mainfrom
lmaskati:lmaskati/test

Conversation

@lmaskati

Copy link
Copy Markdown
Contributor

This PR adds support for making POST requests and setting request headers. The added changes include:

  • The setRequestMethod (part of the HttpUrlConnection class) to specify the request method (currently only POST and GET supported).
  • The setDoOutput, getDoOutput and getOutputStream methods (part of the UrlConnection class), and the OutputStream and OutputStreamWriter classes to write the body of the POST request.
  • The SetRequestProperty method to add request headers.

@bghgarybghgary left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Some minor comments.

Comment threadSource/JavaWrappers.cpp Outdated
Comment threadSource/JavaWrappers.cpp Outdated
Comment threadSource/JavaWrappers.cpp Outdated
Comment threadSource/JavaWrappers.cpp Outdated
Comment threadSource/JavaWrappers.cpp Outdated
@bghgary

Copy link
Copy Markdown
Contributor

Title could be updated :-)

Comment threadInclude/AndroidExtensions/JavaWrappers.h Outdated
Comment threadInclude/AndroidExtensions/JavaWrappers.h Outdated
Comment threadSource/JavaWrappers.cpp Outdated
@lmaskatilmaskati changed the title Lmaskati/testSupporting POST requests and request headesrMar 6, 2023
@lmaskatilmaskati changed the title Supporting POST requests and request headesrSupporting POST requests and request headersMar 6, 2023
lmaskatiand others added 9 commits March 6, 2023 17:57
Co-authored-by: Gary Hsu <bghgary@users.noreply.github.com>
Co-authored-by: Gary Hsu <bghgary@users.noreply.github.com>
Co-authored-by: Gary Hsu <bghgary@users.noreply.github.com>
Co-authored-by: Gary Hsu <bghgary@users.noreply.github.com>
Co-authored-by: Gary Hsu <bghgary@users.noreply.github.com>
Co-authored-by: Gary Hsu <bghgary@users.noreply.github.com>
Co-authored-by: Gary Hsu <bghgary@users.noreply.github.com>
@lmaskatilmaskati closed this Mar 7, 2023
@lmaskatilmaskati reopened this Mar 7, 2023
@lmaskati

Copy link
Copy Markdown
ContributorAuthor

@bghgary ready to merge.

Comment threadSource/JavaWrappers.cpp Outdated
@bghgary
bghgary merged commit 4a54e63 into BabylonJS:mainMar 7, 2023
@lmaskati
lmaskati deleted the lmaskati/test branch May 15, 2023 15:50
Sign up for freeto 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.

2 participants

@lmaskati@bghgary