Lines Matching refs:Spam
71 >>> Request(url, headers={"Spam-eggs": "blah"}).headers["Spam-eggs"]
73 >>> Request(url, headers={"spam-EggS": "blah"}).headers["Spam-eggs"]
76 Currently, Request(url, "Spam-eggs").headers["Spam-Eggs"] raises KeyError,
89 >>> r = Request(url, headers={"Spam-eggs": "blah"})
90 >>> r.has_header("Spam-eggs")
93 [('Spam-eggs', 'blah')]
98 [('Foo-bar', 'baz'), ('Spam-eggs', 'blah')]
100 Note that e.g. r.has_header("spam-EggS") is currently False, and
101 r.get_header("spam-EggS") returns None, but that could be changed in
123 >>> add("b", "http://example.com/", "second", "spam")
135 >>> mgr.find_user_password("Some Realm", "http://example.com/spam")
137 >>> mgr.find_user_password("Some Realm", "http://example.com/spam/spam")
153 ('second', 'spam')
768 req.add_unredirected_header("Spam", "eggs")
786 ("Foo", "bar"), ("Spam", "eggs")])
794 o.addheaders = [("Spam", "eggs")]
808 self.assertEqual(req.unredirected_hdrs["Spam"], "eggs")
814 req.add_unredirected_header("Spam", "foo")
819 self.assertEqual(req.unredirected_hdrs["Spam"], "foo")
921 req.add_unredirected_header("Spam", "spam")
942 self.assertNotIn("Spam", o.req.headers)
943 self.assertNotIn("Spam", o.req.unredirected_hdrs)
1007 interact_netscape(cj, "http://www.example.com/", "spam=eggs")
1294 self.get.add_data("spam")