This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket, ssl, struct | |
from eppxml.hello import Hello | |
class Client(object): | |
def connect(self, host, port): | |
self.connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
self.connection.setblocking(0) | |
self.connection.settimeout(10) | |
self.connection = ssl.wrap_socket(self.connection) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Pwango\Response\HttpResponse; | |
function index(\Pwango\Request $request) | |
{ | |
return new HttpResponse('Index of Projects'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class tfObjectRouteCollection extends sfObjectRouteCollection | |
{ | |
public function __construct(array $options) | |
{ | |
$options = array_merge(array( | |
'methods_for_query' => array() | |
), $options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# / | |
array | |
'action' => string 'mypage' (length=6) | |
'parameters' => | |
array | |
empty | |
# /projects | |
array | |
'action' => string 'projects' (length=8) |
NewerOlder