Method: Agoo::Response#content=
- Defined in:
- ext/agoo/response.c
#content=(val) ⇒ Object
call-seq: body=(str)
Sets the HTTP body for the response.
124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'ext/agoo/response.c', line 124 static VALUE body_set(VALUE self, VALUE val) { Response res = (Response)DATA_PTR(self); if (T_STRING == rb_type(val)) { res->body = strdup(StringValuePtr(val)); res->blen = (int)RSTRING_LEN(val); } else { // TBD use Oj } return Qnil; } |