public class BBWebRequest
Object containing the necessary information for a web request, including URL, method, authorization, and headers.
Modifier and Type | Field and Description |
---|---|
BBjString | Content! A payload of data to be sent with the request. This is often used with POST and PUT and can be the contents of a form that the user submitted. Or a file that is to be uploaded to the webserver. |
BBjVector | Headers!=BBjAPI().makeVector() A vector of BBHeader. These are name/value pairs that provide the web server with additional information about the request. |
BBjString | Method!="GET" Specifies the operation that the webserver should perform. Supported operations include: |
BBjString | URI! The requested web address. Example: "http://www.basis.cloud" |
Constructor and Description |
---|
BBWebRequest() |
Modifier and Type | Method and Description |
---|---|
void | addHeader(BBjString key!, BBjString value!) Adds the specified header to the request. |
org.apache.http.client.methods.HttpRequestBase | Create() Creates an HttpRequestBase object from the fields of this object. |
void | setAuthorization(BBjString authorization!) Adds an authorization header to the request. |
public BBjString Content!
A payload of data to be sent with the request. This is often used with POST and PUT and can be the contents of a form that the user submitted. Or a file that is to be uploaded to the webserver.
public BBjVector Headers!=BBjAPI().makeVector()
A vector of BBHeader. These are name/value pairs that provide the web server with additional information about the request.
public BBjString Method!="GET"
Specifies the operation that the webserver should perform. Supported operations include:
public BBjString URI!
The requested web address. Example: "http://www.basis.cloud"
public void addHeader(BBjString key!, BBjString value!)
Adds the specified header to the request.
public org.apache.http.client.methods.HttpRequestBase Create()
Creates an HttpRequestBase object from the fields of this object.
public void setAuthorization(BBjString authorization!)
Adds an authorization header to the request.
authorization!
The format is specific to the authorization scheme the web server uses.