Class: Phuby::Events

Inherits:
Object
  • Object
show all
Defined in:
lib/phuby/events.rb

Direct Known Subclasses

PHPHandler::Events

Instance Method Summary collapse

Instance Method Details

#header(header, op) ⇒ Object

Called when PHP wants to manipulate headers



11
12
# File 'lib/phuby/events.rb', line 11

def header header, op
end

#send_headers(response_code) ⇒ Object

Called when PHP wants to send response headers with response_code



16
17
# File 'lib/phuby/events.rb', line 16

def send_headers response_code
end

#write(string) ⇒ Object

Called when PHP wants to write something out



5
6
7
# File 'lib/phuby/events.rb', line 5

def write string
  $stdout.write string
end