Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/s/t/status-0.2.4/lib/status/commands/http_request.py   status(Download)
#!/usr/bin/env python
# encoding: utf-8
 
from Naked.toolshed.network import HTTP
from Naked.toolshed.system import exit_success
    def get_response(self):
        try:
            the_url = prepare_url(self.url)
            http = HTTP(the_url)
            http.get()
    def post_response(self):
        try:
            the_url = prepare_url(self.url)
            http = HTTP(the_url)
            http.post()

src/n/a/Naked-0.1.30/lib/Naked/commands/classifier.py   Naked(Download)
    def run(self):
        from Naked.toolshed.network import HTTP
        http = HTTP(self.url) # use the python.org url for the classifier list
 
        print('•naked• Pulling the classifier list from python.org...')