-
Notifications
You must be signed in to change notification settings - Fork 4
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
Legacy documentation #3
Conversation
# Conflicts: # .gitignore
Hey @demurgos I just invited you to join Website team. Check out the contributing guideline on what you can do next. Good job 👍 |
Also feel free to update the authentication and cookies docs, the files that are currently there are just placeholders. |
Thank you! |
…tJar to CookieJar.
…odule to its own file.
…seOptions and qsStringifyOptions
Hi, I finally started to review the options' documentation but its pretty slow. I add examples and try to clarify dependencies between options (the querystring part was pretty confusing). I also add many TODOs when there are some points that require some checking so I would appreciate some help to solve these. (For example: Are custom HTTP methods handled ? What is the interaction between I keep advancing when I have some free time but if someone wants to help I'd be happy to share some of the work :D. |
Request supports both the Options defined in You can specify any HTTP verb as far as I know. Probably a better approach for such huge and ongoing task would be to create separate branch here. That way it will be easier for us to contribute. Lastly you need to create PR from that branch to master. |
Thank you for your answers. I understood how query strings work thanks to About the merge, objects are deeply merged but what about arrays ? Are they replaced, concatenated or some trickier transformation ? I do not have the permission to create a separate branch, could you do it ? |
Arrays are deep merged too. You should be able to create a new branch, though I just created
|
…eractions between `.qs` and `.uri`
I got a 403 (unauthorized) error when pushing to this repo. Am I supposed to have write access ? I can see my account in the members section but I have to admit that I don't exactly what it implies, does it affects my permissions ? |
Well, your invitation is still pending. You have to click on the link in the email that GitHub sent you:
|
Ok, thank you. It was my first invitation so I was looking for a message in the "notifications" page. I just pushed my changes to What is request's workflow to push changes when you have write access ?
Basically, should I work on new branches in this repo or in my fork ? |
I don't think we have strict policy on that. My thinking is that if it is something small you can quickly push to your own fork and open PR. If you expect others to contribute to your work before merging it in then create a branch. BTW recently GitHub introduced new feature but I haven't tested it yet. When you are creating a PR from your fork there is a small checkbox down at the bottom indicating whether you allow contributors to the upstream repo to push to your own fork. |
Right, I see this checkbox ("Allow edits from maintainers"). It's good to know.
This seems like a good test. Thank you for your comment. |
Hi!
This pull request is a follow up of this issue.
I tried to document most of the current/legacy (
2.x.x
) version ofrequest
in order to add missing methods/properties, clearly define the types & default values, split the hugeREADME.md
in smaller chunks, add prototype chains when needed and add installation/usage sections. I also tried to add links to external documentation when some comments were referring to it (mostly to the Node and tough-cookie API).I still left many
TODO
s: the Request class (return value for the main functions) lacks documentation (ie. what should be public ?) and the request-options.md file also needs some precisions.My PR might not be complete, but I hope that we will be a starting point to fix the missing parts and finally start using this website. As mentioned in the previous issue, my goal is also to provide better support for the Typescript typings so I would like some returns about my documentation of the public API.