web.Response methods

Note: For method usage example, click the method name. You will be referred to the examples page.

Method Name

Argument

Returned Value

Description

getHTTPCode

 

Int

Returns the HTTP response status code.

getErrorCode

 

Int

Returns the error code of request performing.

getErrorStr

 

String

Returns the error message of request performing.

getBody

 

String

Returns HTTP-body of the response.

getHeader

key STRING

String

Accepts HTTP-header name as a String and returns its value as a String.

getContentType

 

String

Returns content type of the response.

getCookie

 

String

Returns a cookie of the response.

getRequest

 

web.Request

Returns request object that was performed.

getSession

 

web.Session

Returns the current session associated with this request.

web.Response.Create

 

web.Response

Is a static method that creates a response object.

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.