Skip to content

Added a new api NewXrayRequest #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

codewithtamim
Copy link
Contributor

Added a new api NewXrayRequest which will allow us to create a base64 encoded request from given dat file dir and config path in the function argument. I think it's a better a more formal way to create a Xray Run Request which is straight forward. But before it was little annoying to me as I need to first create a Xray request pass paths my self then encode it myslelf then pass to Run funciton etc blah blah alot of work to me. So this function does all of that with a single call which I feel is useful. Also it returns (similarly in the test it uses) an error if something broke in between. If you have any other questions about the implementation reply to this thread. Thank you

Added a new api `NewXrayRequest` which will allow us to create a base64 encoded request from given dat file dir and config path in the function argument. I think it's a better a more formal way to create a Xray Run Request which is straight forward. But before it was little annoying to me as I need to first create a Xray request pass paths my self then encode it myslelf then pass to Run funciton etc blah blah alot of work to me. So this function does all of that with a single call which I feel is useful. Also it reutns a error if sometime broke in between. If you have any other questions about the implementation reply to this thread
@yiguodev yiguodev merged commit bd79ea3 into XTLS:main May 30, 2025
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.

2 participants