Function psp::sys::sceHttpCreateRequest

source ·
#[no_mangle]
pub unsafe extern "C" fn sceHttpCreateRequest(
    connection_id: i32,
    method: HttpMethod,
    path: *mut u8,
    content_length: u64
) -> i32
Expand description

Create a http request.

§Parameters

  • connection_id: ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL
  • method: One of ::HttpMethod
  • path: Path to access
  • content_length: Length of the content (POST method only)

§Return Value

A request ID on success, < 0 on error.