Pour être informé de certains sujets (comme "http-on-modify-request"), nous devons créer un observateur.
To get notified about some topic (like "http-on-modify-request") we need to create an observer.
NOTE: Il existe de nombreux sujets, en plus simplement "http-on-modify-request", sur lequel vous pouvez recevoir des notifications, par exemple "http-on-examine-response" et "xpcom-shutdown".
NOTE: There are many topics, besides just "http-on-modify-request", that you can get notifications about, for example "http-on-examine-response" and "xpcom-shutdown".
Pour le sujet "http-on-modify-request", le premier paramètre (sujet nommé dans le code ci-dessus) sera le nsIHttpChannel.
For the "http-on-modify-request" topic, the first parameter (named subject in the code above) will be the nsIHttpChannel.
En particulier, pour obtenir le nsIHttpChannel juste avant que la requête HTTP ne soit faite, nous devons observer le sujet "http-on-modify-request".
In particular, to get the nsIHttpChannel just before the HTTP request is made we need to observe the "http-on-modify-request" topic.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.