Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove target annotation #56

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions src/gleam/http.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ pub type MultipartBody {
///
/// This function will accept input of any size, it is up to the caller to limit
/// it if needed.
///
///
/// To enable streaming parsing of multipart messages, this function will return
/// a continuation if there is not enough data to fully parse the headers.
/// Further information is available in the documentation for `MultipartBody`.
///
///
pub fn parse_multipart_headers(
data: BitArray,
boundary: String,
Expand All @@ -183,15 +183,15 @@ pub fn parse_multipart_headers(
/// Parse the body for part of a multipart message, as defined in RFC 2045. The
/// body is everything until the next boundary. This function is generally to be
/// called after calling `parse_multipart_headers` for a given part.
///
///
/// This function will accept input of any size, it is up to the caller to limit
/// it if needed.
///
///
/// To enable streaming parsing of multipart messages, this function will return
/// a continuation if there is not enough data to fully parse the body, along
/// with the data that has been parsed so far. Further information is available
/// in the documentation for `MultipartBody`.
///
///
pub fn parse_multipart_body(
data: BitArray,
boundary: String,
Expand Down Expand Up @@ -553,11 +553,7 @@ fn more_please_body(
|> Ok
}

@target(erlang)
@external(erlang, "gleam_http_native", "decode_method")
fn do_method_from_dynamic(a: Dynamic) -> Result(Method, nil)

@target(javascript)
@external(javascript, "../gleam_http_native.mjs", "decode_method")
fn do_method_from_dynamic(a: Dynamic) -> Result(Method, Nil)

Expand Down
Loading