HttpRequestBuilder

A builder for HTTP request

HttpRequestBuilder.method

Sets method for this request, returns itself for chaining. If method is nil default value - "GET", will be used
overload 1:
HttpRequestBuilder:method(method)
Method Property Fluent Description Representation
method accepts a String
Return Value a HttpRequestBuilder

HttpRequestBuilder.getMethod

Returns method of this request
overload 1:
HttpRequestBuilder:getMethod()
Method Property Fluent Description Representation
Return Value a String

HttpRequestBuilder.uri

Sets URI for this request, returns itself for chaining
overload 1:
HttpRequestBuilder:uri(uri)
Method Property Fluent Description Representation
uri accepts a String
Return Value a HttpRequestBuilder

HttpRequestBuilder.body

Sets body for this request, returns itself for chaining. If data is nil request will be sent without body
overload 1:
HttpRequestBuilder:body(data)
Method Property Fluent Description Representation
data accepts an InputStream
Return Value a HttpRequestBuilder
overload 2:
HttpRequestBuilder:body(data)
Method Property Fluent Description Representation
data accepts a Buffer
Return Value a HttpRequestBuilder

HttpRequestBuilder.header

Sets header for this request, returns itself for chaining. If value is nil header will be removed
overload 1:
HttpRequestBuilder:header(header, value)
Method Property Fluent Description Representation
header accepts a String
value accepts a String
Return Value a HttpRequestBuilder

HttpRequestBuilder.getHeaders

Returns table with all headers set for this request
overload 1:
HttpRequestBuilder:getHeaders()
Method Property Fluent Description Representation
Return Value a table

HttpRequestBuilder.send

Sends this request and returns Future object that will contain response object once request is done
overload 1:
HttpRequestBuilder:send()
Method Property Fluent Description Representation
Return Value a Future

HttpRequestBuilder.getUri

Returns URI of this request
overload 1:
HttpRequestBuilder:getUri()
Method Property Fluent Description Representation
Return Value a String

HttpRequestBuilder.getBody

figura.docs.http_request_builder.get_data
overload 1:
HttpRequestBuilder:getBody()
Method Property Fluent Description Representation
Return Value
a a